Module: ActiveRecord::ConnectionAdapters::DetermineIfPreparableVisitor

Defined in:
lib/active_record/connection_adapters/determine_if_preparable_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#preparableObject (readonly)

Returns the value of attribute preparable.



4
5
6
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 4

def preparable
  @preparable
end

Instance Method Details

#acceptObject



6
7
8
9
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 6

def accept(*)
  @preparable = true
  super
end

#visit_Arel_Nodes_InObject



11
12
13
14
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 11

def visit_Arel_Nodes_In(*)
  @preparable = false
  super
end

#visit_Arel_Nodes_SqlLiteralObject



16
17
18
19
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 16

def visit_Arel_Nodes_SqlLiteral(*)
  @preparable = false
  super
end