Sha256: 0a79c4ed45dd8acf45a1475ebd4b8a3dcd3d0c3e388a8749dab5bb20179f6d70
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
Rails.application.routes.draw do namespace :admin do 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
7 entries across 7 versions & 1 rubygems