Sha256: bdccc3846cb8289f879cf89aa7e2d12a216e2e8ffec7acde2cf5fe96815472dd

Contents?: true

Size: 431 Bytes

Versions: 12

Compression:

Stored size: 431 Bytes

Contents

module NavigationHelpers
  module Refinery
    module <%= class_name.pluralize %><%= 'Engine' if plural_name == singular_name %>
      def path_to(page_name)
        case page_name
        when /the list of <%= plural_name %>/
          admin_<%= plural_name %>_path

         when /the new <%= singular_name %> form/
          new_admin_<%= singular_name %>_path
        else
          nil
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
refinerycms-generators-1.0.4 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-1.0.3 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-1.0.2 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-1.0.1 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-1.0.0 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.6 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.5 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.4 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.3 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.2 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9.1 lib/generators/refinery_engine/templates/features/support/paths.rb
refinerycms-generators-0.9.9 lib/generators/refinery_engine/templates/features/support/paths.rb