diff options
author | Justin Schiff <AmbientRevolution@gmail.com> | 2015-08-05 09:38:43 -0700 |
---|---|---|
committer | Justin Schiff <AmbientRevolution@gmail.com> | 2015-08-11 16:35:10 -0700 |
commit | 3822a322a82a19a9341a21a0cb1e36653da09c46 (patch) | |
tree | 1933f46f1facf23bf51b586b65057441e4f88271 /actionmailer/CHANGELOG.md | |
parent | e69364bc2da0cd5cabe3f01a8dce27ac841a3a2b (diff) | |
download | rails-3822a322a82a19a9341a21a0cb1e36653da09c46.tar.gz rails-3822a322a82a19a9341a21a0cb1e36653da09c46.tar.bz2 rails-3822a322a82a19a9341a21a0cb1e36653da09c46.zip |
Make disable_with default in submit_tag
Prevents double submission by making disable_with the default.
Default disable_with option will only be applied if user has not
specified her/his own disable_with option, whether that is in the
`data-disable-with` string form or the
`:data => { :disable_with => "Saving..." }` hash form. disable_with
will default to the value attribute.
A configuration option was added to opt out of this functionality if
the user so desires.
`config.action_view.automatically_disable_submit_tag = false`
Diffstat (limited to 'actionmailer/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions