Module: ActiveRecord::ConnectionAdapters::DetermineIfPreparableVisitor
- Defined in:
 - lib/active_record/connection_adapters/determine_if_preparable_visitor.rb
 
Instance Attribute Summary collapse
- 
  
    
      #preparable  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute preparable.
 
Instance Method Summary collapse
Instance Attribute Details
#preparable ⇒ Object
Returns the value of attribute preparable.
      6 7 8  | 
    
      # File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 6 def preparable @preparable end  | 
  
Instance Method Details
#accept ⇒ Object
      8 9 10 11  | 
    
      # File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 8 def accept(*) @preparable = true super end  | 
  
#visit_Arel_Nodes_In(o, collector) ⇒ Object
      13 14 15 16 17 18 19 20 21 22 23 24 25  | 
    
      # File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 13 def visit_Arel_Nodes_In(o, collector) @preparable = false if Array === o.right && !o.right.empty? o.right.delete_if do |bind| if Arel::Nodes::BindParam === bind && Relation::QueryAttribute === bind.value !bind.value.boundable? end end end super end  | 
  
#visit_Arel_Nodes_SqlLiteral ⇒ Object
      27 28 29 30  | 
    
      # File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 27 def visit_Arel_Nodes_SqlLiteral(*) @preparable = false super end  |