Created
March 5, 2014 02:02
-
-
Save tdeebswihart/9359841 to your computer and use it in GitHub Desktop.
user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
# Connects this user object to Sufia behaviors. | |
include Sufia::User | |
include Curate::UserBehavior | |
# Connects this user object to Hydra behaviors. | |
include Hydra::User | |
attr_accessible :email, :password, :password_confirmation if Rails::VERSION::MAJOR < 4 | |
# Connects this user object to Blacklights Bookmarks. | |
include Blacklight::User | |
# Include default devise modules. Others available are: | |
# :confirmable, :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :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 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment