blob: 2af5832707c559482880472d7ce1a7bd4b7dd221 (
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 predicate_sql
"IN"
end
end
|