Sha256: 6cea2db1435667ce1e8f907bf5dba3dc5c3484e1b944e3fcb33c04247ebcc741

Contents?: true

Size: 541 Bytes

Versions: 37

Compression:

Stored size: 541 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

37 entries across 37 versions & 8 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/test/rails_app/lib/shared_admin.rb
devise-4.2.1 test/rails_app/lib/shared_admin.rb
devise_openid_authenticatable-1.3.0 rails/lib/shared_admin.rb
devise-4.2.0 test/rails_app/lib/shared_admin.rb
devise-3.5.10 test/rails_app/lib/shared_admin.rb
devise-4.0.3 test/rails_app/lib/shared_admin.rb
devise-4.1.1 test/rails_app/lib/shared_admin.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/test/rails_app/lib/shared_admin.rb
devise-4.1.0 test/rails_app/lib/shared_admin.rb
devise-3.5.9 test/rails_app/lib/shared_admin.rb
devise-4.0.2 test/rails_app/lib/shared_admin.rb
devise-4.0.1 test/rails_app/lib/shared_admin.rb
devise-3.5.8 test/rails_app/lib/shared_admin.rb
devise-3.5.7 test/rails_app/lib/shared_admin.rb
devise-4.0.0 test/rails_app/lib/shared_admin.rb
devise-4.0.0.rc2 test/rails_app/lib/shared_admin.rb
devise-4.0.0.rc1 test/rails_app/lib/shared_admin.rb
devise-3.5.6 test/rails_app/lib/shared_admin.rb
devise-3.5.5 test/rails_app/lib/shared_admin.rb
devise-3.5.4 test/rails_app/lib/shared_admin.rb