class method self.new

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

self.new(options)

No documentation comment.

Parameters

options req
Source
# File activemodel/lib/active_model/validations/numericality.rb, line 12
      def initialize(options)
        super(options.reverse_merge(:only_integer => false, :allow_nil => false))
      end

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

Defined in ActiveModel::Validations::NumericalityValidator

Type at least 2 characters to search.

↑↓ navigate · open · esc close