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.



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

def preparable
  @preparable
end

Instance Method Details

#acceptObject



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_InObject



13
14
15
16
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 13

def visit_Arel_Nodes_In(*)
  @preparable = false
  super
end

#visit_Arel_Nodes_SqlLiteralObject



18
19
20
21
# File 'lib/active_record/connection_adapters/determine_if_preparable_visitor.rb', line 18

def visit_Arel_Nodes_SqlLiteral(*)
  @preparable = false
  super
end