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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations.rb') 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 -- cgit v1.2.3