aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_one_through_association.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-03-09 10:13:09 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-03-09 14:21:27 +0900
commitef3d6fc1d304dbfed7e49fdf501818891839ef65 (patch)
treeca24b6ccfe2277aa34821799dc4838f1c8efdfcc /activerecord/lib/active_record/associations/has_one_through_association.rb
parentc741b493409a5d8ae1f2514f73570a014ddc6b57 (diff)
downloadrails-ef3d6fc1d304dbfed7e49fdf501818891839ef65.tar.gz
rails-ef3d6fc1d304dbfed7e49fdf501818891839ef65.tar.bz2
rails-ef3d6fc1d304dbfed7e49fdf501818891839ef65.zip
Fix select with block doesn't return newly built records in has_many association
The `select` in `QueryMethods` is also an enumerable method. Enumerable methods with block should delegate to `records` on `CollectionProxy`, not `scope`. Fixes #28348.
Diffstat (limited to 'activerecord/lib/active_record/associations/has_one_through_association.rb')
0 files changed, 0 insertions, 0 deletions