aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/extensions/array.rb
blob: 793c06aad8d7c0e84b492eb81d4fa0e593a17b65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Array
  def to_hash
    Hash[*flatten]
  end
  
  def to_sql(formatter = nil)
    "(" + collect { |e| e.to_sql(formatter) }.join(', ') + ")"
  end
  
  def inclusion_predicate_sql
    "IN"
  end
end