Merge pull request #29151 from onemanstartup/jquery_slim_fix

Check for jQuery ajax
This commit is contained in:
Guillermo Iguaran 2017-05-29 13:37:53 -05:00 committed by GitHub
commit cbf378bc27
1 changed files with 1 additions and 1 deletions

View File

@ -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