Sha256: 2b16b8c55ae48a670d74527dc09fca6eb592d8c654eb8788b9d5a44a806c1965
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
if defined?(::ActiveRecord) module Polyamorous InnerJoin = Arel::Nodes::InnerJoin OuterJoin = Arel::Nodes::OuterJoin JoinDependency = ::ActiveRecord::Associations::JoinDependency JoinAssociation = ::ActiveRecord::Associations::JoinDependency::JoinAssociation end require 'polyamorous/tree_node' require 'polyamorous/join' require 'polyamorous/swapping_reflection_class' require 'polyamorous/activerecord/join_association' require 'polyamorous/activerecord/join_dependency' require 'polyamorous/activerecord/reflection' if ::ActiveRecord.version >= ::Gem::Version.new("7.2") require "polyamorous/activerecord/join_association_7_2" end ActiveRecord::Reflection::AbstractReflection.send(:prepend, Polyamorous::ReflectionExtensions) Polyamorous::JoinDependency.send(:prepend, Polyamorous::JoinDependencyExtensions) Polyamorous::JoinDependency.singleton_class.send(:prepend, Polyamorous::JoinDependencyExtensions::ClassMethods) Polyamorous::JoinAssociation.send(:prepend, Polyamorous::JoinAssociationExtensions) end
Version data entries
3 entries across 2 versions & 2 rubygems