Module: ActiveRecord::Temporal::Patches::ThroughAssociation
- Defined in:
- lib/activerecord/temporal/patches/through_association.rb
Overview
Patches the preloader's through_scope method to pass along the relation's
time tag values when it handles has-many-through associations. The handler
for has-many associations uses Relation#merge, but this one doesn't.
Instance Method Summary collapse
Instance Method Details
#through_scope ⇒ Object
7 8 9 10 11 |
# File 'lib/activerecord/temporal/patches/through_association.rb', line 7 def through_scope super.tap do |scope| scope.time_tag_values = reflection_scope.time_tag_values end end |