aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-09-05 04:27:54 -0700
committerGodfrey Chan <godfreykfc@gmail.com>2014-09-05 04:37:12 -0700
commita8827cb9afdf122c003fbff1bfcc28bda2994d04 (patch)
tree20e33bea1ad37c74358f217496ee76870624db68 /activerecord/lib/active_record/core.rb
parentce43e8a6fcca0df88b592955b4b183301e5f3d6d (diff)
downloadrails-a8827cb9afdf122c003fbff1bfcc28bda2994d04.tar.gz
rails-a8827cb9afdf122c003fbff1bfcc28bda2994d04.tar.bz2
rails-a8827cb9afdf122c003fbff1bfcc28bda2994d04.zip
Fixed regression with referencing polymorphic assoc in eager-load
This is cased by 03118bc + 9b5d603. The first commit referenced the undefined local variable `column` when it should be using `reflection.type` as the lookup key. The second commit changed `build_arel` to not modify the `bind_values` in- place so we need to combine the arel's `bind_values` with the relation's when building the SQL. Fixes #16591 Related #15821 / #15892 / 7aeca50
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
0 files changed, 0 insertions, 0 deletions