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