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

Inherits:
JoinPart
  • Object
show all
Defined in:
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

Constructor Details

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

Instance Method Details

#aliased_table_nameObject



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

def aliased_table_name
  base_klass.table_name
end

#match?(other) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
# File '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 'lib/active_record/associations/join_dependency/join_base.rb', line 12

def table
  base_klass.arel_table
end