Class: ArUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ArUser
- Defined in:
- lib/models/activerecord_user.rb
Overview
require ‘logger’ ActiveRecord::Base.logger = Logger.new(STDOUT)
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
Instance Method Summary collapse
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
31 32 33 |
# File 'lib/models/activerecord_user.rb', line 31 def password @password end |
#password_confirmation ⇒ Object
Returns the value of attribute password_confirmation.
31 32 33 |
# File 'lib/models/activerecord_user.rb', line 31 def password_confirmation @password_confirmation end |
Instance Method Details
#admin? ⇒ Boolean
45 46 47 |
# File 'lib/models/activerecord_user.rb', line 45 def admin? self. == -1 || self.id == 1 end |
#site_admin? ⇒ Boolean
49 50 51 |
# File 'lib/models/activerecord_user.rb', line 49 def site_admin? self.id == 1 end |
#to_ary ⇒ Object
53 54 55 |
# File 'lib/models/activerecord_user.rb', line 53 def to_ary self.attributes.values end |