Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.751 kb
1 2 3 4 5 6 7 8 9 10 11 12
RailsAdmin::Engine.routes.draw do
  controller "main" do
    RailsAdmin::Config::Actions.all(:root).each { |action| match "/#{action.route_fragment}", :to => 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}", :to => action.action_name, :as => action.action_name, :via => action.http_methods }
      post "/bulk_action", :to => :bulk_action, :as => "bulk_action"
      scope ":id" do
        RailsAdmin::Config::Actions.all(:member).each { |action| match "/#{action.route_fragment}", :to => action.action_name, :as => action.action_name, :via => action.http_methods }
      end
    end
  end
end
Something went wrong with that request. Please try again.