Sha256: 777a3e023044830af4f086935574a9857f867e13a1ab58f46545af21b73ef954

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

class Configurable < User
  devise :database_authenticatable, :confirmable, :rememberable, :timeoutable, :lockable,
         :stretches => 15, :pepper => 'abcdef', :allow_unconfirmed_access_for => 5.days,
         :remember_for => 7.days, :timeout_in => 15.minutes, :unlock_in => 10.days
end

class WithValidation < Admin
  devise :database_authenticatable, :validatable, :password_length => 2..6
end

class UserWithValidation < User
  validates_presence_of :username
end

class UserWithVirtualAttributes < User
  validates_presence_of :email
  validates_confirmation_of :email, :if => :new?
  attr_accessible :email, :email_confirmation
  attr_accessor :email_confirmation
  devise :database_authenticatable, :validatable, :case_insensitive_keys => [ :email, :email_confirmation ]
end

class Several < Admin
  devise :validatable
  devise :lockable
end

class Inheritable < Admin
end

DataMapper.finalize

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-devise-2.2.1 test/test_models.rb
dm-devise-2.2.0 test/test_models.rb