Class: ActiveRecord::ConnectionAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/extensions.rb

Direct Known Subclasses

FirebirdAdapter

Instance Method Summary collapse

Instance Method Details

#combine_bind_parameters(from_clause: [], join_clause: [], where_clause: [], having_clause: [], limit: nil, offset: nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/active_record/extensions.rb', line 9

def combine_bind_parameters(from_clause: [], join_clause: [], where_clause: [], having_clause: [], limit: nil, offset: nil)
  result = from_clause + join_clause + where_clause + having_clause
  result.unshift(offset) if offset
  result.unshift(limit) if limit
  result  
end