mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
adding support for :disable_with to button_to_remote
This commit is contained in:
committed by
Stefan Penner
parent
ff26ca68d2
commit
56ae6550b8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user