lib/active_admin/router.rb in activeadmin-0.4.0 vs lib/active_admin/router.rb in activeadmin-0.4.1

- old
+ new

@@ -51,9 +51,12 @@ end end end when Page match "/#{config.underscored_resource_name}" => "#{config.underscored_resource_name}#index" + config.page_actions.each do |action| + match "/#{config.underscored_resource_name}/#{action.name}" => "#{config.underscored_resource_name}##{action.name}", :via => action.http_verb + end else raise "Unsupported config class: #{config.class}" end end