no need for parens

This commit is contained in:
Aaron Patterson
2011-01-07 14:10:46 -08:00
parent 344a2d5adc
commit 6e63e7a874

View File

@@ -222,7 +222,7 @@ module ActiveRecord
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