Add lockable to migration.

This commit is contained in:
José Valim 2010-04-02 20:36:27 +02:00
parent 27c4280eca
commit 0f7b311171
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ module Devise
# #
def self.add_module(module_name, options = {}) def self.add_module(module_name, options = {})
ALL << module_name ALL << module_name
options.assert_valid_keys(:strategy, :model, :controller, :route, :flash, :passive_strategy) options.assert_valid_keys(:strategy, :model, :controller, :route, :flash)
config = { config = {
:strategy => STRATEGIES, :strategy => STRATEGIES,

View File

@ -6,7 +6,7 @@ class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
t.recoverable t.recoverable
t.rememberable t.rememberable
t.trackable t.trackable
# t.lockable :unlock_strategy => :<%= Devise.unlock_strategy %> # t.lockable :lock_strategy => :<%= Devise.lock_strategy %>, :unlock_strategy => :<%= Devise.unlock_strategy %>
t.timestamps t.timestamps
end end