From 1b67adb819c97a406fac4d1b96302259fbceca1d Mon Sep 17 00:00:00 2001 From: Cecile Veneziani Date: Sun, 24 Jan 2021 22:23:06 +0100 Subject: [PATCH] Improve ActiveRecord strict_loading documentation Apply the same structure as the documentation of `validate` option by starting the description with "when set to true". This implies, that the value passed to the option should be a boolean. --- activerecord/lib/active_record/associations.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index b7545b6e20..94ce4704fb 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1439,7 +1439,8 @@ module ActiveRecord # Useful for defining methods on associations, especially when they should be shared between multiple # association objects. # [:strict_loading] - # Enforces strict loading every time the associated record is loaded through this association. + # When set to +true+, enforces strict loading every time the associated record is loaded through this + # association. # [:ensuring_owner_was] # Specifies an instance method to be called on the owner. The method must return true in order for the # associated records to be deleted in a background job.