mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
no need for parens
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user