module ActiveRecord::ConnectionAdapters::DetermineIfPreparableVisitor
Attributes
preparable[RW]
Public Instance Methods
accept(*)
click to toggle source
Calls superclass method
# 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)
click to toggle source
Calls superclass method
# 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(*)
click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/determine_if_preparable_visitor.rb, line 27 def visit_Arel_Nodes_SqlLiteral(*) @preparable = false super end