instance method allow_blank?

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

allow_blank?(record)

No documentation comment.

Parameters

record req
Source
# File activemodel/lib/active_model/validator.rb, line 184
      def allow_blank?(record)
        if options[:allow_blank].respond_to?(:to_proc)
          options[:allow_blank].to_proc.call(record)
        else
          options[:allow_blank]
        end
      end

Defined in activemodel/lib/active_model/validator.rb line 184 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::EachValidator

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close