Sha256: 1f88ec1d72edd18500fac6543afdb3d8af105d0e09c200f7d773bdcea48c25f5

Contents?: true

Size: 755 Bytes

Versions: 16

Compression:

Stored size: 755 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
  devise :case_insensitive_keys => [ :email, :email_confirmation ]
  validates :email, :presence => true, :confirmation => {:on => :create}
end

class Several < Admin
  devise :validatable
  devise :lockable
end

class Inheritable < Admin
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
devise-3.1.2 test/test_models.rb
devise-3.0.4 test/test_models.rb
devise-3.2.0 test/test_models.rb
devise-3.1.1 test/test_models.rb
devise-3.1.0 test/test_models.rb
devise-3.0.3 test/test_models.rb
devise-3.1.0.rc2 test/test_models.rb
devise-3.0.2 test/test_models.rb
devise-3.0.1 test/test_models.rb
loyal_devise-2.1.7 test/test_models.rb
loyal_devise-2.1.6 test/test_models.rb
devise-3.0.0 test/test_models.rb
loyal_devise-2.1.5 test/test_models.rb
loyal_devise-2.1.4 test/test_models.rb
loyal_devise-2.1.3 test/test_models.rb
devise-3.0.0.rc test/test_models.rb