Sha256: 3e5251a453e7b7c97f2a052955c74ebdce7e80293dbe8e86edb7bcc88c6ce83e
Contents?: true
Size: 688 Bytes
Versions: 4
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true require 'rails_compatibility' require 'rails_compatibility/active_record' class << RailsCompatibility if GTE_RAILS_5_2 def apply_join_dependency(relation) relation.send(:apply_join_dependency) end elsif GTE_RAILS_5_1 def apply_join_dependency(relation) relation.send(:construct_relation_for_association_calculations) end elsif GTE_RAILS_5_0 def apply_join_dependency(relation) relation.dup.send(:construct_relation_for_association_calculations) end else def apply_join_dependency(relation) relation.send(:construct_relation_for_association_calculations) end end end
Version data entries
4 entries across 4 versions & 1 rubygems