ifad / chronomodel

Temporal PostgreSQL (9.4+) system with "flashback" framework for ActiveRecord (7.0+)
MIT License
194 stars 21 forks source link

Association patchers are messing up with private methods visibility #309

Closed tagliala closed 4 months ago

tagliala commented 4 months ago

Without chronomodel

> ActiveRecord::Associations::Preloader::ThroughAssociation.private_instance_methods.include?(:through_scope) 
=> true

ActiveRecord::Relation.private_instance_methods.include?(:build_arel)
=> true

With chronomodel

> ActiveRecord::Associations::Preloader::ThroughAssociation.private_instance_methods.include?(:through_scope) 
=> false

ActiveRecord::Relation.private_instance_methods.include?(:build_arel)
=> false