Module: Arel::Visitors::ArJdbcCompat
- Defined in:
- lib/arel/visitors/compat.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#do_visit(x, a) ⇒ Object
protected
AREL 4.0.
-
#do_visit_select_core(x, a) ⇒ Object
protected
AREL 4.0.
Class Method Details
.limit_for(limit_or_node) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/arel/visitors/compat.rb', line 27 def limit_for(limit_or_node) if limit_or_node.respond_to?(:expr) expr = limit_or_node.expr # NOTE(uwe): Different behavior for Arel 6.0.0 and 6.0.2 expr.respond_to?(:value) ? expr.value.to_i : expr.to_i else limit_or_node end end |
Instance Method Details
#do_visit(x, a) ⇒ Object (protected)
AREL 4.0
8 |
# File 'lib/arel/visitors/compat.rb', line 8 def do_visit(x, a); visit(x); end |
#do_visit_select_core(x, a) ⇒ Object (protected)
AREL 4.0
14 15 16 |
# File 'lib/arel/visitors/compat.rb', line 14 def do_visit_select_core(x, a) # a = nil visit_Arel_Nodes_SelectCore(x) end |