提交 321b4c85 编写于 作者: A Aaron Patterson

pg supports real booleans, so handle the case when `true` is returned

上级 1e5cdbdd
......@@ -10,8 +10,11 @@ module Query
end
def query_attribute(attr_name)
unless value = read_attribute(attr_name)
false
value = read_attribute(attr_name)
case value
when true then true
when false, nil then false
else
column = self.class.columns_hash[attr_name]
if column.nil?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册