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