Sha256: 3718a2668d89416f224da5f231fe34c76f2638afaf11b0a426c09d5e4c1ce758

Contents?: true

Size: 525 Bytes

Versions: 193

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require "active_record/associations/join_dependency/join_part"

module ActiveRecord
  module Associations
    class JoinDependency # :nodoc:
      class JoinBase < JoinPart # :nodoc:
        attr_reader :table

        def initialize(base_klass, table, children)
          super(base_klass, children)
          @table = table
        end

        def match?(other)
          return true if self == other
          super && base_klass == other.base_klass
        end
      end
    end
  end
end

Version data entries

193 entries across 188 versions & 16 rubygems

Version Path
activerecord-6.1.4.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.6.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.2.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.4.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.6.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.6.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.4.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.2.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.0 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.4.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.0.rc3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.4.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.2 lib/active_record/associations/join_dependency/join_base.rb