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-8.0.0.beta1 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha2 lib/active_record/associations/join_dependency/join_base.rb
omg-activerecord-8.0.0.alpha1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.1.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.0 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.0.rc1 lib/active_record/associations/join_dependency/join_base.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/associations/join_dependency/join_base.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.0.beta3 lib/active_record/associations/join_dependency/join_base.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/associations/join_dependency/join_base.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/associations/join_dependency/join_base.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/associations/join_dependency/join_base.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.2.0.beta2 lib/active_record/associations/join_dependency/join_base.rb