提交 52c70d49 编写于 作者: G Godfrey Chan

💅 Put escape clause first, keeps @sgrif happy 😁

See comment on 6f7910ae
上级 6f7910ae
......@@ -13,7 +13,8 @@ def type
end
def type_cast_from_database(value)
value.to_i unless value.nil?
return if value.nil?
value.to_i
end
protected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册