1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip]Replace jquery-ujs with rails-ujs

This commit is contained in:
willnet 2017-07-19 13:36:42 +09:00
parent a03a7ce50b
commit a76ac34613

View file

@ -15,7 +15,7 @@ module ActionView
# You don't need to use these tags for regular forms as they generate their own hidden fields. # 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 # 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 def csrf_meta_tags
if protect_against_forgery? if protect_against_forgery?