Sha256: d3535139c44e20b1f49b777e72fe42b77cacc94c5501a1665b250cb7afdbc6dd
Contents?: true
Size: 655 Bytes
Versions: 7
Compression:
Stored size: 655 Bytes
Contents
Rails.application.routes.draw do mount Ckeditor::Engine => '/ckeditor' devise_for :administrators, :controllers => { :sessions => "admin/sessions" } 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