From 6bae7d74b1df298b19aa382ef0fce1ce66ee4942 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 2 Jun 2024 13:06:10 +0200 Subject: [PATCH] Remove `Relation#build_preloader` This method has been removed from AR 7.x Close #301 Ref: - rails/rails@16e7846 - rails/rails#40776 --- lib/chrono_model/patches/relation.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/chrono_model/patches/relation.rb b/lib/chrono_model/patches/relation.rb index 8a7a195..6d3e7c4 100644 --- a/lib/chrono_model/patches/relation.rb +++ b/lib/chrono_model/patches/relation.rb @@ -70,15 +70,6 @@ def chrono_join_history(join) ) end - # Build a preloader at the +as_of_time+ of this relation. - # Pass the current model to define Relation - # - def build_preloader - ActiveRecord::Associations::Preloader.new( - model: model, as_of_time: as_of_time - ) - end - def find_nth(*) return super unless try(:history?)