Sha256: cfc1b68a90e9f20bf49a5dbc97907e3c5279d366b04ca40cd9401c95900f2706
Contents?: true
Size: 869 Bytes
Versions: 7
Compression:
Stored size: 869 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
7 entries across 7 versions & 2 rubygems