diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 922cbc05eb..c562bd9ce4 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -71,7 +71,7 @@ module ActiveRecord # # Person.sum(:age) # => 4562 def sum(column_name = nil, &block) - return super &block if block_given? + return super(&block) if block_given? calculate(:sum, column_name) end |