Class: PandaCms::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- PandaCms::User
- Defined in:
- app/models/panda_cms/user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#is_admin? ⇒ Boolean
9 10 11 |
# File 'app/models/panda_cms/user.rb', line 9 def is_admin? admin end |
#name ⇒ Object
13 14 15 |
# File 'app/models/panda_cms/user.rb', line 13 def name "#{firstname} #{lastname}" end |