Sha256: e9c094f15e9112c996f24668eba2f330b264f28c238d3da7af7cb879ca12fc7e
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
Answers::Core::Engine.routes.draw 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 => <%= backend_route %> do resources :<%= plural_name %>, :except => :show do collection do post :update_positions end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
answers-core-0.0.0.2 | lib/generators/answers/engine/templates/config/routes.rb.erb |
answers-core-0.0.0 | lib/generators/answers/engine/templates/config/routes.rb.erb |