aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-07-28 10:39:04 -0300
committerGitHub <noreply@github.com>2016-07-28 10:39:04 -0300
commitb37bd3d52f4d06ec3452bdfcd6bc9c6bfcb27519 (patch)
tree0b8715d893168c990ec67e8bad26086724fac4fe /activerecord/lib/active_record/associations
parent519801db08a2eb0ea579ceed64f3be04a873acc9 (diff)
parentfe48c97e26e68fb32c5980416f8e3a1f4c57a479 (diff)
downloadrails-b37bd3d52f4d06ec3452bdfcd6bc9c6bfcb27519.tar.gz
rails-b37bd3d52f4d06ec3452bdfcd6bc9c6bfcb27519.tar.bz2
rails-b37bd3d52f4d06ec3452bdfcd6bc9c6bfcb27519.zip
Merge pull request #25941 from kamipo/finder_methods_uses_load_target
`FinderMethods` uses `records` (`load_target`) when `loaded?` is true
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index 98250a7ab8..806a905323 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -29,7 +29,7 @@ module ActiveRecord
# instantiation of the actual post records.
class CollectionProxy < Relation
delegate(*(ActiveRecord::Calculations.public_instance_methods - [:count]), to: :scope)
- delegate :find_nth, :exists?, :update_all, :arel, to: :scope
+ delegate :exists?, :update_all, :arel, to: :scope
def initialize(klass, association) #:nodoc:
@association = association