提交 6e63e7a8 编写于 作者: A Aaron Patterson

no need for parens

上级 344a2d5a
......@@ -222,7 +222,7 @@ def composed_of(part_id, options = {})
def reader_method(name, class_name, mapping, allow_nil, constructor)
module_eval do
define_method(name) do
if (@aggregation_cache[name].nil?) && (!allow_nil || mapping.any? {|pair| !read_attribute(pair.first).nil? })
if @aggregation_cache[name].nil? && (!allow_nil || mapping.any? {|pair| !read_attribute(pair.first).nil? })
attrs = mapping.collect {|pair| read_attribute(pair.first)}
object = case constructor
when Symbol
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册