Reuse the Column integer converter

上级 ebabd78b
......@@ -82,7 +82,7 @@ class Integer < Type
def type_cast(value)
return if value.nil?
value.to_i rescue value ? 1 : 0
ConnectionAdapters::Column.value_to_integer value
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册