class method
self.new
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
self.new(options)
No documentation comment.
Parameters
-
optionsreq
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