method

allow_only_integer?

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActiveModel::Validations::NumericalityValidator
allow_only_integer?(record) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/numericality.rb, line 83
      def allow_only_integer?(record)
        case options[:only_integer]
        when Symbol
          record.send(options[:only_integer])
        when Proc
          options[:only_integer].call(record)
        else
          options[:only_integer]
        end
      end
Register or log in to add new notes.