Skip to content
Browse files

Remove unneeded merge with default false options

  • Loading branch information...
1 parent cbe1d24 commit 35c5ccb30cf01028970f157894a77fdf54973567 @amatsuda amatsuda committed
Showing with 0 additions and 4 deletions.
  1. +0 −4 activemodel/lib/active_model/validations/numericality.rb
View
4 activemodel/lib/active_model/validations/numericality.rb
@@ -9,10 +9,6 @@ class NumericalityValidator < EachValidator
RESERVED_OPTIONS = CHECKS.keys + [:only_integer]
- def initialize(options)
- super(options.reverse_merge(:only_integer => false, :allow_nil => false))
- end
-
def check_validity!
keys = CHECKS.keys - [:odd, :even]
options.slice(*keys).each do |option, value|

0 comments on commit 35c5ccb

Please sign in to comment.
Something went wrong with that request. Please try again.