lib/arel/extensions/insert_statement.rb in arel_toolkit-0.4.5 vs lib/arel/extensions/insert_statement.rb in arel_toolkit-0.4.6
- old
+ new
@@ -40,14 +40,14 @@
quote_column_name x.name
end.join ', '})"
end
case o.override
- when nil, 0
+ when :OVERRIDING_KIND_UNDEFINED, :OVERRIDING_NOT_SET, nil
collector << ''
- when 1
+ when :OVERRIDING_USER_VALUE
collector << ' OVERRIDING USER VALUE'
- when 2
+ when :OVERRIDING_SYSTEM_VALUE
collector << ' OVERRIDING SYSTEM VALUE'
else
raise "Unknown override `#{o.override}`"
end