method

check_validity!

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ComparisonValidator
check_validity!() public

No documentation

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

Hide source
# File activemodel/lib/active_model/validations/comparison.rb, line 12
      def check_validity!
        unless (options.keys & COMPARE_CHECKS.keys).any?
          raise ArgumentError, "Expected one of :greater_than, :greater_than_or_equal_to, "           ":equal_to, :less_than, :less_than_or_equal_to, or :other_than option to be supplied."
        end
      end
Register or log in to add new notes.