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.0.6.1 lib/active_record/associations/join_dependency/join_base.rb
rubypitaya-3.12.2 ./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 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.3.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.6.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.5.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.8.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.8 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.2.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.5.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.0.4.8 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.7.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.2.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-6.1.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-7.0.2.3 lib/active_record/associations/join_dependency/join_base.rb