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.2.11.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.11.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.7.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.11.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.7.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.11 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.10 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.10.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.6.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.5.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.5.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.9 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.9.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.4.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.9.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.3 lib/active_record/associations/join_dependency/join_base.rb