Class: Kms::PageDrop
- Inherits:
-
Liquor::Drop
- Object
- Liquor::Drop
- Kms::PageDrop
- Defined in:
- lib/kms/drops/page_drop.rb
Instance Method Summary collapse
- #breadcrumbs ⇒ Object
-
#children ⇒ Object
export :children.
Instance Method Details
#breadcrumbs ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/kms/drops/page_drop.rb', line 13 def parent = self.source breads = [] while parent do breads << parent.to_drop parent = parent.parent end return breads.reverse end |
#children ⇒ Object
export :children
9 10 11 |
# File 'lib/kms/drops/page_drop.rb', line 9 def children self.source.children.order("position").to_drop end |