Sha256: 2b40c7e33503085e13ec4493bf44f4abf790bc7911b31fd825dd3cf09546584d

Contents?: true

Size: 623 Bytes

Versions: 10

Compression:

Stored size: 623 Bytes

Contents

Refinery::Core::Engine.routes.append do
<% unless skip_frontend? %>
  # Frontend routes
  namespace :<%= namespacing.underscore %> do
    resources :<%= plural_name %><%= ", :path => ''" if namespacing.underscore == plural_name %>, :only => [:index, :show]
  end
<% end %>
  # Admin routes
  namespace :<%= namespacing.underscore %>, :path => '' do
    namespace :admin, :path => 'refinery<%= "/#{namespacing.underscore}" if namespacing.underscore != plural_name %>' do
      resources :<%= plural_name %>, :except => :show do
        collection do
          post :update_positions
        end
      end
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.0.9 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.0.8 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.0.7 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.0.6 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.0.5 lib/generators/refinery/engine/templates/config/routes.rb
refinerycms-core-2.0.4 lib/generators/refinery/engine/templates/config/routes.rb
refinerycms-core-2.0.3 lib/generators/refinery/engine/templates/config/routes.rb
refinerycms-core-2.0.2 lib/generators/refinery/engine/templates/config/routes.rb
refinerycms-core-2.0.1 lib/generators/refinery/engine/templates/config/routes.rb