method

option_call

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

Method deprecated or moved

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

option_call(record, name)
private

No documentation available.

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