Sha256: 155952ab5f44a5f3f0916d752a5532b1189047ba5a508d4450b48c47387976d0

Contents?: true

Size: 836 Bytes

Versions: 12

Compression:

Stored size: 836 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 UserWithCustomEncryption < User
  protected
  def password_digest(password)
    password.reverse
  end
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

12 entries across 12 versions & 2 rubygems

Version Path
devise-3.5.10 test/test_models.rb
devise-3.5.9 test/test_models.rb
devise-3.5.8 test/test_models.rb
devise-3.5.7 test/test_models.rb
devise-4.0.0.rc1 test/test_models.rb
devise-3.5.6 test/test_models.rb
devise-3.5.5 test/test_models.rb
devise-3.5.4 test/test_models.rb
devise-3.5.3 test/test_models.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/devise-3.5.2/test/test_models.rb
devise-3.5.2 test/test_models.rb
devise-3.5.1 test/test_models.rb