From 5ea4cae911604eb879f68f66fad4e83121d1b072 Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Mon, 16 Oct 2017 00:20:20 +0100 Subject: Remove association(true) references from docs [ci skip] Passing `true` to force an association to reload its records from the database was deprecated in 5.0 and removed in 5.1. --- activerecord/lib/active_record/associations.rb | 2 +- activerecord/lib/active_record/associations/collection_proxy.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index ef26f4a20c..91f915183a 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -850,7 +850,7 @@ module ActiveRecord # project.milestones # fetches milestones from the database # project.milestones.size # uses the milestone cache # project.milestones.empty? # uses the milestone cache - # project.milestones(true).size # fetches milestones from the database + # project.milestones.reload.size # fetches milestones from the database # project.milestones # uses the milestone cache # # == Eager loading of associations diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 412e89255d..07f7303f8d 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -1072,7 +1072,6 @@ module ActiveRecord end # Reloads the collection from the database. Returns +self+. - # Equivalent to collection(true). # # class Person < ActiveRecord::Base # has_many :pets @@ -1086,9 +1085,6 @@ module ActiveRecord # # person.pets.reload # fetches pets from the database # # => [#] - # - # person.pets(true) # fetches pets from the database - # # => [#] def reload proxy_association.reload reset_scope -- cgit v1.2.3