Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (12 sloc) 0.74 kb
a818f64 @sferik Cleanup trailing whitespace
authored
1 RailsAdmin::Engine.routes.draw do
2 controller "main" do
50c33ef @bbenezech wip
bbenezech authored
3 RailsAdmin::Config::Actions.root({}).each { |action| match "/#{action.route_fragment}", :to => action.action_name, :as => action.action_name, :via => action.http_methods }
a818f64 @sferik Cleanup trailing whitespace
authored
4 scope ":model_name" do
50c33ef @bbenezech wip
bbenezech authored
5 RailsAdmin::Config::Actions.model({}).each { |action| match "/#{action.route_fragment}", :to => action.action_name, :as => action.action_name, :via => action.http_methods }
6 post "/bulk_action", :to => :bulk_action, :as => "bulk_action"
a818f64 @sferik Cleanup trailing whitespace
authored
7 scope ":id" do
50c33ef @bbenezech wip
bbenezech authored
8 RailsAdmin::Config::Actions.object({}).each { |action| match "/#{action.route_fragment}", :to => action.action_name, :as => action.action_name, :via => action.http_methods }
a818f64 @sferik Cleanup trailing whitespace
authored
9 end
10 end
11 end
12 end
Something went wrong with that request. Please try again.