Skip to content

Commit

Permalink
Merge pull request #3139 from timoschilling/code_simplification
Browse files Browse the repository at this point in the history
simplify ActiveAdmin::BatchActions::BatchActionPopover#action
  • Loading branch information
seanlinsley committed May 15, 2014
2 parents 109ab88 + 016b77e commit 213984f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def build(options = {}, &block)

def action(batch_action, options = {})
options[:class] ||= []
options[:class] += %w(batch_action)
options[:class] << "batch_action"
options.merge! "data-action" => batch_action.sym,
"data-confirm" => batch_action.confirm

Expand Down

0 comments on commit 213984f

Please sign in to comment.