diff options
author | Erik St. Martin <alakriti@gmail.com> | 2010-01-25 23:46:54 -0500 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:34 -0600 |
commit | 56ae6550b8a7e24bc731f25b66fc3a5d246e221c (patch) | |
tree | c21ff16d87ab59252eeeadf46cf0bc3049a360be | |
parent | ff26ca68d26475f5ba9c3771d54f12a648c2374f (diff) | |
download | rails-56ae6550b8a7e24bc731f25b66fc3a5d246e221c.tar.gz rails-56ae6550b8a7e24bc731f25b66fc3a5d246e221c.tar.bz2 rails-56ae6550b8a7e24bc731f25b66fc3a5d246e221c.zip |
adding support for :disable_with to button_to_remote
-rw-r--r-- | actionpack/lib/action_view/helpers/ajax_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb index ae37802f02..e79801c46d 100644 --- a/actionpack/lib/action_view/helpers/ajax_helper.rb +++ b/actionpack/lib/action_view/helpers/ajax_helper.rb @@ -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) |