Permalink
Browse files

Merge pull request #29845 from willnet/doc-rails-ujs

[ci skip]Replace jquery-ujs with rails-ujs
  • Loading branch information...
guilleiguaran committed Jul 19, 2017
2 parents a03a7ce + a76ac34 commit 1c2ed0a05440b65f093f5394edb785f86b9e85ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/lib/action_view/helpers/csrf_helper.rb
@@ -15,7 +15,7 @@ module CsrfHelper
# You don't need to use these tags for regular forms as they generate their own hidden fields.
#
# For AJAX requests other than GETs, extract the "csrf-token" from the meta-tag and send as the
# "X-CSRF-Token" HTTP header. If you are using jQuery with jquery-rails this happens automatically.
# "X-CSRF-Token" HTTP header. If you are using rails-ujs this happens automatically.
#
def csrf_meta_tags
if protect_against_forgery?

0 comments on commit 1c2ed0a

Please sign in to comment.