# File lib/active_record/relation/calculations.rb, line 92 def sum(*args) if block_given? self.to_a.sum(*args) {|*block_args| yield(*block_args)} else calculate(:sum, *args) end end