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
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.7/lib/active_record/associations/join_dependency/join_base.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-8.0.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-8.0.0.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.2.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.1.5.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.8.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-8.0.0 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.1.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-8.0.0.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.1.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.1.4.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.8.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.10 lib/active_record/associations/join_dependency/join_base.rb
activerecord-8.0.0.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.9 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.1.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.1.4.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.8.5 lib/active_record/associations/join_dependency/join_base.rb