Class: ActiveRecord::Associations::JoinDependency::JoinBase
- Defined in:
 - 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
Constructor Details
#initialize(base_klass, table, children) ⇒ JoinBase
Returns a new instance of JoinBase.
      11 12 13 14  | 
    
      # File '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 '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 '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  |