Sha256: ba239720b01bec0d1503d0eed917cef6b2881c168ac3885ace4bece766f04af5

Contents?: true

Size: 502 Bytes

Versions: 35

Compression:

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

end

Version data entries

35 entries across 35 versions & 6 rubygems

Version Path
devise-3.0.4 test/rails_app/lib/shared_admin.rb
devise-2.2.8 test/rails_app/lib/shared_admin.rb
devise-2.1.4 test/rails_app/lib/shared_admin.rb
devise-2.2.7 test/rails_app/lib/shared_admin.rb
devise-3.0.3 test/rails_app/lib/shared_admin.rb
devise-2.2.6 test/rails_app/lib/shared_admin.rb
devise-3.0.2 test/rails_app/lib/shared_admin.rb
devise-3.0.1 test/rails_app/lib/shared_admin.rb
devise-2.2.5 test/rails_app/lib/shared_admin.rb
loyal_devise-2.1.7 test/rails_app/lib/shared_admin.rb
loyal_devise-2.1.6 test/rails_app/lib/shared_admin.rb
devise-3.0.0 test/rails_app/lib/shared_admin.rb
loyal_devise-2.1.5 test/rails_app/lib/shared_admin.rb
loyal_devise-2.1.4 test/rails_app/lib/shared_admin.rb
loyal_devise-2.1.3 test/rails_app/lib/shared_admin.rb
devise-3.0.0.rc test/rails_app/lib/shared_admin.rb
devise-2.2.4 test/rails_app/lib/shared_admin.rb
devise-warbler-2.2.3 test/rails_app/lib/shared_admin.rb
devise-2.2.3 test/rails_app/lib/shared_admin.rb
devise-2.1.3 test/rails_app/lib/shared_admin.rb