Skip to content

Instantly share code, notes, and snippets.

@ichiban
Created October 23, 2013 01:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichiban/7111117 to your computer and use it in GitHub Desktop.
Save ichiban/7111117 to your computer and use it in GitHub Desktop.
Rails AdminとDoorkeeperを一緒に使うときは、この設定で幸せになれる気がする
# ...
# 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