Sha256: d9782e585dde4f07e3fcdfc839ff02fb0c204c39a5b4f58066ba32cd0c629810

Contents?: true

Size: 565 Bytes

Versions: 8

Compression:

Stored size: 565 Bytes

Contents

module SharedAdmin
  extend ActiveSupport::Concern

  included do
    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

  def raw_confirmation_token
    @raw_confirmation_token
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-3.2.3 test/rails_app/lib/shared_admin.rb
devise-3.2.2 test/rails_app/lib/shared_admin.rb
devise-3.2.1 test/rails_app/lib/shared_admin.rb
devise-3.1.2 test/rails_app/lib/shared_admin.rb
devise-3.2.0 test/rails_app/lib/shared_admin.rb
devise-3.1.1 test/rails_app/lib/shared_admin.rb
devise-3.1.0 test/rails_app/lib/shared_admin.rb
devise-3.1.0.rc2 test/rails_app/lib/shared_admin.rb