Module: ActiveRecord::ConnectionAdapters::DetermineIfPreparableVisitor
- Defined in:
- activerecord/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
- #accept(object, collector) ⇒ Object
- #visit_Arel_Nodes_In(o, collector) ⇒ Object
- #visit_Arel_Nodes_NotIn(o, collector) ⇒ Object
- #visit_Arel_Nodes_SqlLiteral(o, collector) ⇒ Object
Instance Attribute Details
#preparable ⇒ Object
Returns the value of attribute preparable
6 7 8 |
# File 'activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 6 def preparable @preparable end |
Instance Method Details
#accept(object, collector) ⇒ Object
8 9 10 11 |
# File 'activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 8 def accept(object, collector) @preparable = true super end |
#visit_Arel_Nodes_In(o, collector) ⇒ Object
13 14 15 16 |
# File 'activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 13 def visit_Arel_Nodes_In(o, collector) @preparable = false super end |
#visit_Arel_Nodes_NotIn(o, collector) ⇒ Object
18 19 20 21 |
# File 'activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 18 def visit_Arel_Nodes_NotIn(o, collector) @preparable = false super end |
#visit_Arel_Nodes_SqlLiteral(o, collector) ⇒ Object
23 24 25 26 |
# File 'activerecord/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 23 def visit_Arel_Nodes_SqlLiteral(o, collector) @preparable = false super end |