Sha256: 1549e69b08fc7f465be699e1c718af6a11b534d1ce68099195c2f7a1f69cfb99

Contents?: true

Size: 476 Bytes

Versions: 29

Compression:

Stored size: 476 Bytes

Contents

module ActiveRecord
  module Associations
    class JoinDependency # :nodoc:
      class JoinBase < JoinPart # :nodoc:
        def ==(other)
          other.class == self.class &&
            other.base_klass == base_klass
        end

        def aliased_prefix
          "t0"
        end

        def table
          Arel::Table.new(table_name, arel_engine)
        end

        def aliased_table_name
          base_klass.table_name
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
activerecord-4.0.13 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.13.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.11.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.12 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.11 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.10 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.10.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.10.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.9 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.8 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.7 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.6 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.6.rc3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.6.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.6.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.5 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.4 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.4.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.3 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.0.2 lib/active_record/associations/join_dependency/join_base.rb