Module: Arel::Visitors::ArJdbcCompat

Included in:
ToSql
Defined in:
lib/arel/visitors/compat.rb

Instance Method Summary collapse

Instance Method Details

#limit_for(limit_or_node) ⇒ Object



4
5
6
# File 'lib/arel/visitors/compat.rb', line 4

def limit_for(limit_or_node)
  limit_or_node.respond_to?(:expr) ? limit_or_node.expr.to_i : limit_or_node
end