Skip to content

Commit

Permalink
link_to_remote and button_to_remote now support :confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
erikstmartin authored and stefanpenner committed Jan 27, 2010
1 parent d769897 commit 9821648
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actionpack/lib/action_view/helpers/ajax_helper.rb
Expand Up @@ -493,6 +493,16 @@ def script_decorator(options)

private

def extract_confirm_attributes!(options)
attributes = {}

if options && options[:confirm]
attributes["data-confirm"] = options.delete(:confirm)
end

attributes
end

def extract_remote_attributes!(options)
attributes = options.delete(:html) || {}

Expand Down

0 comments on commit 9821648

Please sign in to comment.