Created
October 23, 2013 01:38
-
-
Save ichiban/7111117 to your computer and use it in GitHub Desktop.
Rails AdminとDoorkeeperを一緒に使うときは、この設定で幸せになれる気がする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# Include specific models (exclude the others): | |
config.included_models = Dir.new(Rails.root.join('app', 'models')).entries.map{|entry| $1.camelize if entry =~ /^(\w+)\.rb$/ }.compact! + ['Doorkeeper::Application', 'Doorkeeper::AccessGrant', 'Doorkeeper::AccessToken'] | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment