Permalink
Browse files

Merge pull request #29151 from onemanstartup/jquery_slim_fix

Check for jQuery ajax
  • Loading branch information...
guilleiguaran committed May 29, 2017
2 parents e7a33a5 + f1a740e commit cbf378bc2725afe55e81d74bf97be7d484309863
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 cbf378b

Please sign in to comment.