Sha256: d01ab4b533e33b301374b97cceef4227353466ae93bf698651ed1d254a9a325d

Contents?: true

Size: 447 Bytes

Versions: 17

Compression:

Stored size: 447 Bytes

Contents

class Admin < ActiveRecord::Base
  devise  :database_authenticatable, :registerable,
          :timeoutable, :recoverable, :lockable, :confirmable,
          unlock_strategy: :time, lock_strategy: :none,
          allow_unconfirmed_access_for: 2.weeks, reconfirmable: true

  validates_length_of     :reset_password_token,  minimum: 3, allow_blank: true
  validates_uniqueness_of :email,                 allow_blank: true, if: :email_changed?
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
devise-token_authenticatable-1.1.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-1.0.2 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-1.0.1 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-1.0.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.5.3 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.5.2 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.5.1 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.4.10 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.5.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.4.9 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.4.6 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.4.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.3.2 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.3.1 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.3.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.2.0 spec/support/rails_app/app/models/admin.rb
devise-token_authenticatable-0.2.0.beta1 spec/support/rails_app/app/models/admin.rb