generators/devise_install/templates/devise.rb in devise-0.7.3 vs generators/devise_install/templates/devise.rb in devise-0.7.4
- old
+ new
@@ -1,11 +1,15 @@
# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise.setup do |config|
- # Configure the frameworks used by default. You should always set this value
- # because if Devise add a new strategy, it won't be added to your application
+ # Configure Devise modules used by default. You should always set this value
+ # because if Devise adds a new strategy, it won't be added to your application
# by default, unless you configure it here.
- config.all = <%= Devise::ALL.inspect %>
+ #
+ # Remember that Devise includes other modules on its own (like :activatable
+ # and :timeoutable) which are not included here and also plugins. So be sure
+ # to check the docs for a complete set.
+ config.all = [:authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable]
# Invoke `rake secret` and use the printed value to setup a pepper to generate
# the encrypted password. By default no pepper is used.
# config.pepper = "rake secret output"