Sha256: 80167b5a3afdee99457cd7b71f0db79012349705c6ef4677d91c635996778b26

Contents?: true

Size: 477 Bytes

Versions: 130

Compression:

Stored size: 477 Bytes

Contents

require 'active_record/associations/join_dependency/join_part'

module ActiveRecord
  module Associations
    class JoinDependency # :nodoc:
      class JoinBase < JoinPart # :nodoc:
        def match?(other)
          return true if self == other
          super && base_klass == other.base_klass
        end

        def table
          base_klass.arel_table
        end

        def aliased_table_name
          base_klass.table_name
        end
      end
    end
  end
end

Version data entries

130 entries across 125 versions & 10 rubygems

Version Path
activerecord-4.1.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.2.rc3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.2.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.2.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.0 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.0.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.0.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.0.beta2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.1.0.beta1 lib/active_record/associations/join_dependency/join_base.rb