class Locomotive::Steam::ParentFinderService
Public Instance Methods
find(page, fullpath)
click to toggle source
Calls superclass method
Locomotive::Steam::PageFinderService#find
# 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