Я использую rails 3 и Devise 1.3.4 для аутентификации в моем приложении.После создания пользовательской модели я пытаюсь добавить больше модулей devise в мой файл миграции devise_create_users.rb, но получаю ошибку:
неопределенный метод `timeoutable 'для ActiveRecord :: ConnectionAdapters :: TableDefinition.
Тем не менее, добавление других модулей, таких как: подтверждаемая работа просто отлично.
devise_create_user.rb:
create_table(:users) do |t|
t.database_authenticatable :null => false
t.recoverable
t.rememberable
t.trackable
t.timeoutable
# t.encryptable
t.confirmable
# t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
# t.token_authenticatable
t.timestamps
end
Моя пользовательская модель:
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :confirmable , :timeoutable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me
end
Любые идеи, что ошибка можетбыть?