Flowdock
method

allow_only_integer?

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: ActiveModel::Validations::NumericalityValidator
allow_only_integer?(record) private

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 115
      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.