method

option_value

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

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_value(record, option_value)
public

No documentation available.

# File activemodel/lib/active_model/validations/comparability.rb, line 10
      def option_value(record, option_value)
        case option_value
        when Proc
          option_value.call(record)
        when Symbol
          record.send(option_value)
        else
          option_value
        end
      end