diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-28 17:58:15 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-28 18:10:44 +0200 |
commit | db2c1354eb37bc2f5747a2b3faaa7964ed0df986 (patch) | |
tree | a02fd5336081348d7696924f274c93cd34ed7412 /actionpack/lib | |
parent | 84ca8c8cd07d700598e87b418370268f146b122c (diff) | |
download | rails-db2c1354eb37bc2f5747a2b3faaa7964ed0df986.tar.gz rails-db2c1354eb37bc2f5747a2b3faaa7964ed0df986.tar.bz2 rails-db2c1354eb37bc2f5747a2b3faaa7964ed0df986.zip |
Cover one more case in auth_token and remote forms
If embedding auth_token in remote forms is off and we
pass a value for auth_token it should respect it.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 3fd91fed2d..066b98d4a2 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -622,7 +622,7 @@ module ActionView if html_options["data-remote"] && !embed_authenticity_token_in_remote_forms && - html_options["authenticity_token"] != true + html_options["authenticity_token"].blank? # The authenticity token is taken from the meta tag in this case html_options["authenticity_token"] = false elsif html_options["authenticity_token"] == true |