Class: ActiveRecord::Associations::JoinDependency::JoinBase
- Defined in:
- activerecord/lib/active_record/associations/join_dependency/join_base.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from JoinPart
Instance Method Summary collapse
-
#initialize(base_klass, table, children) ⇒ JoinBase
constructor
A new instance of JoinBase.
- #match?(other) ⇒ Boolean
Methods inherited from JoinPart
#each, #each_children, #extract_record, #instantiate
Methods included from Enumerable
#as_json, #compact_blank, #exclude?, #excluding, #including, #index_by, #index_with, #many?, #pluck, #sum, #without
Constructor Details
#initialize(base_klass, table, children) ⇒ JoinBase
Returns a new instance of JoinBase.
11 12 13 14 |
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 11 def initialize(base_klass, table, children) super(base_klass, children) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table
9 10 11 |
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 9 def table @table end |
Instance Method Details
#match?(other) ⇒ Boolean
16 17 18 19 |
# File 'activerecord/lib/active_record/associations/join_dependency/join_base.rb', line 16 def match?(other) return true if self == other super && base_klass == other.base_klass end |