Skip to content

Commit

Permalink
fixed problem in which options[:html][:remote] would be overridden in…
Browse files Browse the repository at this point in the history
… form_for() - fixes #2094
  • Loading branch information
dgeb authored and tenderlove committed Jul 26, 2011
1 parent 8f67029 commit 75366cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_helper.rb
Expand Up @@ -365,7 +365,7 @@ def form_for(record, options = {}, &proc)
apply_form_for_options!(record, options)
end

options[:html][:remote] = options.delete(:remote)
options[:html][:remote] = options.delete(:remote) if options.has_key?(:remote)
options[:html][:method] = options.delete(:method) if options.has_key?(:method)
options[:html][:authenticity_token] = options.delete(:authenticity_token)

Expand Down

0 comments on commit 75366cb

Please sign in to comment.