提交 3098579f 编写于 作者: G Godfrey Chan

Revert "[PERF] Speed up integer type casting from DB"

This reverts commit 6f7910ae and 52c70d49.

Query params are type cased through the same method, so this approach doesn't work.
上级 52c70d49
......@@ -12,10 +12,7 @@ def type
:integer
end
def type_cast_from_database(value)
return if value.nil?
value.to_i
end
alias type_cast_for_database type_cast
protected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册