Skip to content

Commit

Permalink
Rename document action's tool_partial option to 'partial'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 14, 2014
1 parent 1ec95fb commit fe37534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/blacklight/catalog_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,6 @@ def action_path name, action_opts, url_opts = nil
end

def render_document_action_partial name, opts, path_options = {}
render(partial: opts.tool_partial || 'document_action', locals: { name: name, opts: opts, path_options: path_options })
render(partial: opts.partial || 'document_action', locals: { name: name, opts: opts, path_options: path_options })
end
end
2 changes: 1 addition & 1 deletion lib/blacklight/catalog/document_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module ClassMethods
# @param opts [Hash]
# @option opts [Symbol] :callback If this action accepts POST requests, the name of a method to invoke
# @option opts [Symbol] :validator If this action accepts POST requests, the name of a method to invoke before the callback to validate the parameters
# @option opts [String] :tool_partial a partial to use to render this action in the relevant tool bars
# @option opts [String] :partial a partial to use to render this action in the relevant tool bars
# @option opts [String] :label (for the default tool partial) a label to use for this action
# @option opts [String] :path (for the default tool partial) a path helper to give a route for this action
#
Expand Down

0 comments on commit fe37534

Please sign in to comment.