Sha256: 7de2f3078a15506b75b941e9fbb1747154e418f490f127526abf2fde50fbda44
Contents?: true
Size: 364 Bytes
Versions: 52
Compression:
Stored size: 364 Bytes
Contents
require_relative 'page_finder_service' module Locomotive module Steam class ParentFinderService < PageFinderService def find(page, fullpath) return nil if fullpath.blank? if fullpath.strip == 'parent' decorate { repository.parent_of(page) } else super(fullpath) end end end end end
Version data entries
52 entries across 52 versions & 1 rubygems