Skip to content

Instantly share code, notes, and snippets.

@justinko
Created March 16, 2012 10:33
Show Gist options
  • Save justinko/2049488 to your computer and use it in GitHub Desktop.
Save justinko/2049488 to your computer and use it in GitHub Desktop.
Setup Devise in your application.rb instead of the models
module MyApp
class Application < Rails::Application
config.to_prepare do
User.devise :database_authenticatable, :recoverable, :rememberable,
:trackable, :validatable
Admin.devise :database_authenticatable, :recoverable, :rememberable,
:trackable, :validatable
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment