Skip to content

Commit

Permalink
Remove Relation#build_preloader
Browse files Browse the repository at this point in the history
This method has been removed from AR 7.x

Close #301

Ref:
- rails/rails@16e7846
- rails/rails#40776
  • Loading branch information
tagliala committed Jun 2, 2024
1 parent d84a139 commit 6bae7d7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/chrono_model/patches/relation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?)

Expand Down

0 comments on commit 6bae7d7

Please sign in to comment.