Sha256: b1121f0e3aec7b41ea19de9c44e8bda88cc38e6e191029e3f9f85042bc7ee29a

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

module NavigationHelpers
  module Refinery
    module Pages
      def path_to(page_name)
        case page_name
        when /the home\s?page/
          root_path
        when /the list of pages/
          admin_pages_path
        when /the new page form/
          new_admin_page_path
        else
          nil
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-0.9.8.5 vendor/refinerycms/pages/features/support/paths.rb
refinerycms-0.9.8.4 vendor/refinerycms/pages/features/support/paths.rb
refinerycms-0.9.8.3 vendor/refinerycms/pages/features/support/paths.rb