Sha256: 8f95b9fb275b0a9f56c54d6c834b79dca4633bff695022ad89eea0a2940fa89c

Contents?: true

Size: 857 Bytes

Versions: 20

Compression:

Stored size: 857 Bytes

Contents

class User < ApplicationRecord
  # Connects this user object to Hydra behaviors.
  include Hydra::User
  # Connects this user object to Hyrax behaviors.
  include Hyrax::User
  include Hyrax::UserUsageStats



  if Blacklight::Utils.needs_attr_accessible?
    attr_accessible :email, :password, :password_confirmation
  end
  # Connects this user object to Blacklights Bookmarks.
  include Blacklight::User

  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :validatable

  include Hydra::RoleManagement::UserRoles

  # Method added by Blacklight; Blacklight uses #to_s on your
  # user class to get a user-displayable login/identifier for
  # the account.
  def to_s
    email
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
zizia-6.0.1 spec/dummy/app/models/user.rb
zizia-6.0.0 spec/dummy/app/models/user.rb
zizia-5.5.0 spec/dummy/app/models/user.rb
zizia-5.4.0 spec/dummy/app/models/user.rb
zizia-5.3.0 spec/dummy/app/models/user.rb
zizia-5.2.0 spec/dummy/app/models/user.rb
zizia-5.1.0 spec/dummy/app/models/user.rb
zizia-5.0.1 spec/dummy/app/models/user.rb
zizia-5.0.0 spec/dummy/app/models/user.rb
zizia-4.6.0.alpha.01 spec/dummy/app/models/user.rb
zizia-4.5.4.alpha.01 spec/dummy/app/models/user.rb
zizia-4.5.3.alpha.01 spec/dummy/app/models/user.rb
zizia-4.5.2.alpha.01 spec/dummy/app/models/user.rb
zizia-4.5.1.alpha.01 spec/dummy/app/models/user.rb
zizia-4.4.1.alpha.01 spec/dummy/app/models/user.rb
zizia-4.4.0.alpha.01 spec/dummy/app/models/user.rb
zizia-4.3.1.alpha.01 spec/dummy/app/models/user.rb
zizia-4.2.0.alpha.01 spec/dummy/app/models/user.rb
zizia-4.1.0.alpha.01 spec/dummy/app/models/user.rb
zizia-4.0.4.alpha.01 spec/dummy/app/models/user.rb