Module: TemporalTables::AbstractReflectionExtensions
- Defined in:
- lib/temporal_tables/reflection_extensions.rb
Overview
This is required for eager_load to work in Rails 5.2.x
Instance Method Summary collapse
Instance Method Details
#build_join_constraint(table, foreign_table) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/temporal_tables/reflection_extensions.rb', line 4 def build_join_constraint(table, foreign_table) constraint = super if at_value = Thread.current[:at_time] constraint = constraint.and(klass.build_temporal_constraint(at_value)) end constraint end |