lib/active_admin/resource/routes.rb in activeadmin-2.7.0 vs lib/active_admin/resource/routes.rb in activeadmin-2.8.0

- old
+ new

@@ -96,16 +96,16 @@ def route_name(resource_path_name, options = {}) suffix = options[:suffix] || "path" route = [] - route << options[:action] # "batch_action", "edit" or "new" - route << resource.route_prefix # "admin" + route << options[:action] # "batch_action", "edit" or "new" + route << resource.route_prefix # "admin" route << belongs_to_name if nested? # "category" - route << resource_path_name # "posts" or "post" - route << suffix # "path" or "index path" + route << resource_path_name # "posts" or "post" + route << suffix # "path" or "index path" - route.compact.join('_').to_sym # :admin_category_posts_path + route.compact.join('_').to_sym # :admin_category_posts_path end # @return params to pass to instance path def route_instance_params(instance) if nested?