This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.
sum(*args)
Calculate sum using SQL, not Enumerable
# File activerecord/lib/active_record/associations/association_collection.rb, line 173 def sum(*args) if block_given? calculate(:sum, *args) { |*block_args| yield(*block_args) } else calculate(:sum, *args) end end