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.7.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.7.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.5.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.4 lib/active_record/associations/join_dependency/join_base.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/active_record/associations/join_dependency/join_base.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/associations/join_dependency/join_base.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/associations/join_dependency/join_base.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.4.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.3 lib/active_record/associations/join_dependency/join_base.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.4.2 lib/active_record/associations/join_dependency/join_base.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.4.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7.1 lib/active_record/associations/join_dependency/join_base.rb