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
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-4.2.8/lib/active_record/associations/join_dependency/join_base.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-5.0.2/lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.2.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.8 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.8.rc1 lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/associations/join_dependency/join_base.rb
abaci-0.3.0 vendor/bundle/gems/activerecord-5.0.0/lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.1.rc2 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.1.rc1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-5.0.0.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.7.1 lib/active_record/associations/join_dependency/join_base.rb
activerecord-4.2.7 lib/active_record/associations/join_dependency/join_base.rb