Sha256: e06bbd80f256da85ea4e28fc3d0bb64020bcd0c0a320b1095d7111f9960c5f3e

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require_relative "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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 activerecord/lib/active_record/associations/join_dependency/join_base.rb