Class: Locomotive::Steam::ParentFinderService
- Inherits:
-
PageFinderService
- Object
- PageFinderService
- Locomotive::Steam::ParentFinderService
- Defined in:
- lib/locomotive/steam/services/parent_finder_service.rb
Instance Method Summary collapse
Methods inherited from PageFinderService
Instance Method Details
#find(page, fullpath) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/locomotive/steam/services/parent_finder_service.rb', line 8 def find(page, fullpath) return nil if fullpath.blank? if fullpath.strip == 'parent' decorate { repository.parent_of(page) } else super(fullpath) end end |