lib/torque/postgresql/adapter/quoting.rb in torque-postgresql-1.0.1 vs lib/torque/postgresql/adapter/quoting.rb in torque-postgresql-1.1.0
- old
+ new
@@ -16,10 +16,10 @@
schema = schema || name_schema || 'public'
Name.new(schema, table).quoted
end
def quote_default_expression(value, column)
- if value.is_a?(::Enumerable)
+ if value.class <= Array
quote(value) + '::' + column.sql_type
else
super
end
end