Class: BlogBasic::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/blog_basic/user.rb

Instance Method Summary collapse

Instance Method Details

#default_valuesObject



8
9
10
# File 'app/models/blog_basic/user.rb', line 8

def default_values
    self.status ||= BlogBasic::BlogConf.data['name']
end

#nameObject

def admin?

!self.identifier_url.nil?

end



25
26
27
# File 'app/models/blog_basic/user.rb', line 25

def name
  self.name
end