Sha256: 6899c897a11bc12d26286594727929b3cf5f54fd04c4d59fe184f61945e40cfb

Contents?: true

Size: 576 Bytes

Versions: 9

Compression:

Stored size: 576 Bytes

Contents

Rails.application.routes.draw do
 
  mount Ckeditor::Engine => '/ckeditor'

  
  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

9 entries across 9 versions & 1 rubygems

Version Path
fullstack-admin-0.2.19 config/routes.rb
fullstack-admin-0.2.18 config/routes.rb
fullstack-admin-0.2.17 config/routes.rb
fullstack-admin-0.2.16 config/routes.rb
fullstack-admin-0.2.15 config/routes.rb
fullstack-admin-0.2.14 config/routes.rb
fullstack-admin-0.2.13 config/routes.rb
fullstack-admin-0.2.12 config/routes.rb
fullstack-admin-0.2.11 config/routes.rb