Class: BlogBasic::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BlogBasic::User
- Defined in:
- app/models/blog_basic/user.rb
Instance Method Summary collapse
- #default_values ⇒ Object
-
#name ⇒ Object
def admin? !self.identifier_url.nil? end.
Instance Method Details
#default_values ⇒ Object
8 9 10 |
# File 'app/models/blog_basic/user.rb', line 8 def default_values self.status ||= BlogBasic::BlogConf.data['name'] end |
#name ⇒ Object
def admin?
!self.identifier_url.nil?
end
25 26 27 |
# File 'app/models/blog_basic/user.rb', line 25 def name self.name end |