2017/10/30分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #31002 from ta1kt0me/call_ajax_without_beforeSend
actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee
の修正です。
Rails.ajax
でbeforeSend
オプションが指定されているかのチェックを行い、beforeSend
オプション指定されている場合のみbeforeSend
を実行するよう修正しています。
- unless options.beforeSend?(xhr, options) + if options.beforeSend? && !options.beforeSend(xhr, options) return false
beforeSend
オプションを指定せずにRails.ajax
を使用出来るようにする為。
PolymorphicReflection#scopes
is no longer used since a5651eb5
activerecord/lib/active_record/reflection.rb
の修正です。
使用していないPolymorphicReflection#scopes
メソッドを削除しています。
source_type_scope
should respect correct table alias
activerecord/lib/active_record/reflection.rb
の修正です。
polymorphic has_many through assocationsを使用しているtableを複数joinした際に、誤ったSQLが生成されてしまうバグがあったのを修正しています。