Skip to content
Browse files

adding support for :disable_with to button_to_remote

  • Loading branch information...
1 parent ff26ca6 commit 56ae6550b8a7e24bc731f25b66fc3a5d246e221c @erikstmartin erikstmartin committed with stefanpenner
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_view/helpers/ajax_helper.rb
View
4 actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -319,6 +319,10 @@ def button_to_remote(name, options = {}, html_options = {})
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)

0 comments on commit 56ae655

Please sign in to comment.
Something went wrong with that request. Please try again.