Class: ActiveRecord::Associations::JoinDependency::JoinBase
- Defined in:
- activerecord/lib/active_record/associations/join_dependency/join_base.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from JoinPart
Instance Method Summary collapse
Methods inherited from JoinPart
#each, #extract_record, #initialize, #instantiate, #name
Methods included from Enumerable
#as_json, #exclude?, #index_by, #many?, #sum
Constructor Details
This class inherits a constructor from ActiveRecord::Associations::JoinDependency::JoinPart
Instance Method Details
#aliased_table_name ⇒ Object
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 |
#table ⇒ Object
12 13 14 |
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 12 def table base_klass.arel_table end |