Skip to content

Commit

Permalink
remote_form_for now supports :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 ed09413 commit eb2d32f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/lib/action_view/helpers/ajax_helper.rb
Expand Up @@ -56,6 +56,11 @@ module AjaxHelper
# See FormHelper#form_for for additional semantics. # See FormHelper#form_for for additional semantics.
def remote_form_for(record_or_name_or_array, *args, &proc) def remote_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options! options = args.extract_options!

if confirm = options.delete(:confirm)
add_confirm_to_attributes!(options, confirm)
end

object_name = extract_object_name_for_form!(args, options, record_or_name_or_array) object_name = extract_object_name_for_form!(args, options, record_or_name_or_array)


concat(form_remote_tag(options)) concat(form_remote_tag(options))
Expand Down

0 comments on commit eb2d32f

Please sign in to comment.