instance method option_call

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5 Private — implementation detail, not part of the public API

Available in: v3.1.12 v3.2.22.5

Signature

option_call(record, name)

No documentation comment.

Parameters

record req
name req
Source
# File activemodel/lib/active_model/validations/format.rb, line 27
      def option_call(record, name)
        option = options[name]
        option.respond_to?(:call) ? option.call(record) : option
      end

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

Defined in ActiveModel::Validations::FormatValidator

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