Class: ActiveRecord::Associations::JoinDependency::JoinBase
- Inherits:
-
JoinPart
show all
- Defined in:
- activerecord/lib/active_record/associations/join_dependency/join_base.rb
Overview
Instance Attribute Summary
Attributes inherited from JoinPart
#base_klass
Instance Method Summary
collapse
Methods inherited from JoinPart
#aliased_primary_key, #aliased_table, #column_names_with_alias, #extract_record, #initialize, #instantiate, #record_id
Instance Method Details
#==(other) ⇒ Object
5
6
7
8
|
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 5
def ==(other)
other.class == self.class &&
other.base_klass == base_klass
end
|
#aliased_prefix ⇒ Object
10
11
12
|
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 10
def aliased_prefix
"t0"
end
|
#aliased_table_name ⇒ Object
18
19
20
|
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 18
def aliased_table_name
base_klass.table_name
end
|
14
15
16
|
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 14
def table
Arel::Table.new(table_name, arel_engine)
end
|