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

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.4.1 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.4.0 lib/locomotive/steam/services/parent_finder_service.rb
locomotivecms_steam-1.4.0.rc2 lib/locomotive/steam/services/parent_finder_service.rb