Sha256: 91c08da1a569c8ff4280529a64e96d93655926e1a53a8cbcc3d934349a334395
Contents?: true
Size: 702 Bytes
Versions: 5
Compression:
Stored size: 702 Bytes
Contents
Refinery::Core::Engine.routes.append do # Frontend routes namespace :<%= namespacing.underscore %> do resources :<%= plural_name %><%= ", :path => ''" if namespacing.underscore == plural_name %>, :only => [:new, :create] do collection do get :thank_you end end end # Admin routes namespace :<%= namespacing.underscore %>, :path => '' do namespace :admin, :path => 'refinery/<%= namespacing.underscore %>' do resources :<%= plural_name %>, :path => '' <% if @includes_spam %> do collection do get :spam end member do get :toggle_spam end end<% end %> resources :settings end end end
Version data entries
5 entries across 5 versions & 1 rubygems