Skip to content

Commit

Permalink
Fix URL builder for reorder route
Browse files Browse the repository at this point in the history
Preference is to use ActiveAdmin's built-in route builder so we get the
correct namespace and model naming.
  • Loading branch information
zporter committed Feb 14, 2018
1 parent 3710834 commit 649ba3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/reorderable/table_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def reorder_column
private

def reorder_handle_for(resource)
url = url_for([:reorder, active_admin_namespace.name, resource])
url = [active_admin_config.route_instance_path(resource), :reorder].join('/')
span(reorder_handle_content, :class => 'reorder-handle', 'data-reorder-url' => url)
end

Expand Down

0 comments on commit 649ba3e

Please sign in to comment.