method

validate_calculation_options

Importance_0
v1.1.6 - Show latest stable - 0 notes - Class: ActiveRecord::Calculations::ClassMethods
validate_calculation_options(operation, options = {}) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.