Method: Og::SqlUtils#quote_array
- Defined in:
- lib/og/store/sql.rb
#quote_array(val) ⇒ Object Also known as: quotea
Escape the Array Ruby type.
128 129 130 131 132 133 134 135 |
# File 'lib/og/store/sql.rb', line 128 def quote_array(val) case val when Array val.collect{ |v| quotea(v) }.join(',') else quote(val) end end |