Sha256: 103c9175a7bce1b58852ac75e8af28d7d8d600b8d8020e6d201e3cd520f2ce51
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
Rails.application.routes.draw do namespace :admin do mount Ckeditor::Engine => '/ckeditor' resources :positionables, :only => [:index] do post :sort, :on => :collection end Fullstack::Admin.resources.each do |r| if r.type == :resource if "Admin::#{r.name.to_s.pluralize.camelize}Controller".safe_constantize resources r.name, :except => [:show] else resources r.name, :except => [:show], :controller => :scaffold, :_admin_resource_type => r.name end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fullstack-admin-0.1.43 | config/routes.rb |
fullstack-admin-0.1.42 | config/routes.rb |
fullstack-admin-0.1.41 | config/routes.rb |