Class: WebAdmin::User

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
EnumerateIt
Includes:
I18n::Alchemy
Defined in:
app/models/web_admin/user.rb

Instance Method Summary collapse

Instance Method Details

#password_required?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/web_admin/user.rb', line 21

def password_required?
  !persisted? || password.present? || password_confirmation.present?
end

#to_sObject



17
18
19
# File 'app/models/web_admin/user.rb', line 17

def to_s
  email
end