Sha256: 398d7db9ef34a801083b6dd742593cf21bd2d3113bb8682d2bb5ac08058e47b9

Contents?: true

Size: 473 Bytes

Versions: 19

Compression:

Stored size: 473 Bytes

Contents

Rails.application.routes.draw do
  mount Ckeditor::Engine => '/ckeditor'
  
  namespace :admin do
    
    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

19 entries across 19 versions & 1 rubygems

Version Path
fullstack-admin-0.1.40 config/routes.rb
fullstack-admin-0.1.39 config/routes.rb
fullstack-admin-0.1.38 config/routes.rb
fullstack-admin-0.1.37 config/routes.rb
fullstack-admin-0.1.36 config/routes.rb
fullstack-admin-0.1.35 config/routes.rb
fullstack-admin-0.1.34 config/routes.rb
fullstack-admin-0.1.33 config/routes.rb
fullstack-admin-0.1.32 config/routes.rb
fullstack-admin-0.1.30 config/routes.rb
fullstack-admin-0.1.29 config/routes.rb
fullstack-admin-0.1.28 config/routes.rb
fullstack-admin-0.1.27 config/routes.rb
fullstack-admin-0.1.26 config/routes.rb
fullstack-admin-0.1.25 config/routes.rb
fullstack-admin-0.1.24 config/routes.rb
fullstack-admin-0.1.23 config/routes.rb
fullstack-admin-0.1.20 config/routes.rb
fullstack-admin-0.1.19 config/routes.rb