Class: ActiveRecord::Associations::JoinDependency::JoinBase

Inherits:
JoinPart
  • Object
show all
Defined in:
activerecord/lib/active_record/associations/join_dependency/join_base.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from JoinPart

#base_klass, #children

Instance Method Summary collapse

Methods inherited from JoinPart

#each, #extract_record, #initialize, #instantiate, #name

Methods included from Enumerable

#as_json, #exclude?, #index_by, #many?, #pluck, #sum, #without

Constructor Details

This class inherits a constructor from ActiveRecord::Associations::JoinDependency::JoinPart

Instance Method Details

#aliased_table_nameObject


16
17
18
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 16

def aliased_table_name
  base_klass.table_name
end

#match?(other) ⇒ Boolean


7
8
9
10
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 7

def match?(other)
  return true if self == other
  super && base_klass == other.base_klass
end

#tableObject


12
13
14
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 12

def table
  base_klass.arel_table
end