instance method check_options_validity

Ruby on Rails 3.2.22.5

Since v3.1.12 Last seen in v3.2.22.5 Private

Available in: v3.1.12 v3.2.22.5

Signature

check_options_validity(options, name)

No documentation comment.

Parameters

options req
name req
Source
# File activemodel/lib/active_model/validations/format.rb, line 35
      def check_options_validity(options, name)
        option = options[name]
        if option && !option.is_a?(Regexp) && !option.respond_to?(:call)
          raise ArgumentError, "A regular expression or a proc or lambda must be supplied as :#{name}"
        end
      end

Defined in activemodel/lib/active_model/validations/format.rb line 35 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Validations::FormatValidator

Type at least 2 characters to search.

↑↓ navigate · open · esc close