method
validate_calculation_options
validate_calculation_options(operation, options = {})
private
Hide source
# File activerecord/lib/active_record/calculations.rb, line 192 def validate_calculation_options(operation, options = {}) if operation.to_s == 'count' options.assert_valid_keys(CALCULATIONS_OPTIONS + [:include]) else options.assert_valid_keys(CALCULATIONS_OPTIONS) end end