method

check_validity!

rails latest stable - Class: ActiveModel::Validations::ExclusionValidator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

check_validity!()
public

No documentation available.

# File activemodel/lib/active_model/validations/exclusion.rb, line 10
      def check_validity!
        unless [:include?, :call].any? { |method| delimiter.respond_to?(method) }
          raise ArgumentError, ERROR_MESSAGE
        end
      end