Sha256: 3bb94ca9ec5794a763dde917c9875284a3ac094c615f409ad1499dc2b20199dd

Contents?: true

Size: 812 Bytes

Versions: 7

Compression:

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

  # 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

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-3.2.0 .dassie/app/models/user.rb
hyrax-3.1.0 .dassie/app/models/user.rb
hyrax-3.0.2 .dassie/app/models/user.rb
hyrax-3.0.1 .dassie/app/models/user.rb
hyrax-3.0.0 .dassie/app/models/user.rb
hyrax-3.0.0.pre.rc4 .dassie/app/models/user.rb
hyrax-3.0.0.pre.rc3 .dassie/app/models/user.rb