Skip to content

Commit

Permalink
Remove unneeded merge with default false options
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed May 16, 2011
1 parent cbe1d24 commit 35c5ccb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions activemodel/lib/active_model/validations/numericality.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 35c5ccb

Please sign in to comment.