Module: Brightcontent::PageCore
- Extended by:
- ActiveSupport::Concern
- Included in:
- Page
- Defined in:
- app/models/brightcontent/page_core.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#homepage? ⇒ Boolean
36 37 38 |
# File 'app/models/brightcontent/page_core.rb', line 36 def homepage? lft == 1 end |
#path ⇒ Object
40 41 42 |
# File 'app/models/brightcontent/page_core.rb', line 40 def path "/" + slug end |
#to_s ⇒ Object
44 45 46 |
# File 'app/models/brightcontent/page_core.rb', line 44 def to_s name end |