Sha256: 3076b4c687c3f7cb85cc604d4898e78a4b100da3d3a6bc3b451ca2feb281f4c8

Contents?: true

Size: 733 Bytes

Versions: 36

Compression:

Stored size: 733 Bytes

Contents

RailsAdmin::Engine.routes.draw do
  controller 'main' do
    RailsAdmin::Config::Actions.all(:root).each { |action| match "/#{action.route_fragment}", action: action.action_name, as: action.action_name, via: action.http_methods }
    scope ':model_name' do
      RailsAdmin::Config::Actions.all(:collection).each { |action| match "/#{action.route_fragment}", action: action.action_name, as: action.action_name, via: action.http_methods }
      post '/bulk_action', action: :bulk_action, as: 'bulk_action'
      scope ':id' do
        RailsAdmin::Config::Actions.all(:member).each { |action| match "/#{action.route_fragment}", action: action.action_name, as: action.action_name, via: action.http_methods }
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
rails_admin-2.3.1 config/routes.rb
rails_admin-2.3.0 config/routes.rb
rails_admin-3.0.0 config/routes.rb
rails_admin-3.0.0.rc4 config/routes.rb
rails_admin-3.0.0.rc3 config/routes.rb
rails_admin-3.0.0.rc2 config/routes.rb
rails_admin-3.0.0.rc config/routes.rb
rails_admin-3.0.0.beta2 config/routes.rb
rails_admin-3.0.0.beta config/routes.rb
rails_admin-2.2.1 config/routes.rb
rails_admin-2.2.0 config/routes.rb
rails_admin-2.1.1 config/routes.rb
rails_admin-2.1.0 config/routes.rb
rails_admin-2.0.2 config/routes.rb
rails_admin-1.4.3 config/routes.rb
rails_admin-2.0.1 config/routes.rb
rails_admin-2.0.0 config/routes.rb
rails_admin-2.0.0.rc config/routes.rb
rails_admin-2.0.0.beta config/routes.rb
rails_admin-1.4.2 config/routes.rb