adding support for :disable_with to button_to_remote

This commit is contained in:
Erik St. Martin
2010-01-25 23:46:54 -05:00
committed by Stefan Penner
parent ff26ca68d2
commit 56ae6550b8

View File

@@ -319,6 +319,10 @@ module ActionView
add_confirm_to_attributes!(attributes, confirm)
end
if disable_with = options.delete(:disable_with)
add_disable_with_to_attributes!(attributes, disable_with)
end
attributes.merge!(extract_remote_attributes!(options))
tag(:input, attributes)