instance method
calculate
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
calculate(operation, column_name)
No documentation comment.
Parameters
-
operationreq -
column_namereq
Source
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 724
def calculate(operation, column_name)
null_scope? ? scope.calculate(operation, column_name) : super
end
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 724
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy