Permalink
Browse files

Merge pull request #29151 from onemanstartup/jquery_slim_fix

Check for jQuery ajax
  • Loading branch information...
guilleiguaran authored and rafaelfranca committed May 29, 2017
1 parent 55c3e1f commit 56d78d7778334f7b620ab2e9c67f5402746b0874
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/app/assets/javascripts/rails-ujs/start.coffee
@@ -9,7 +9,7 @@
} = Rails
# For backward compatibility
if jQuery? and not jQuery.rails
if jQuery? and jQuery.ajax? and not jQuery.rails
jQuery.rails = Rails
jQuery.ajaxPrefilter (options, originalOptions, xhr) ->
CSRFProtection(xhr) unless options.crossDomain

0 comments on commit 56d78d7

Please sign in to comment.