aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-05-16 14:53:30 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-05-16 15:37:44 +0900
commit35c5ccb30cf01028970f157894a77fdf54973567 (patch)
tree9f05e6ceefe3962cbe508ab667e0e53ad0635507 /activemodel
parentcbe1d2488b12460dd752a3805ea813f37e4fe94e (diff)
downloadrails-35c5ccb30cf01028970f157894a77fdf54973567.tar.gz
rails-35c5ccb30cf01028970f157894a77fdf54973567.tar.bz2
rails-35c5ccb30cf01028970f157894a77fdf54973567.zip
Remove unneeded merge with default false options
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/numericality.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb
index ae576462e6..42556c80a9 100644
--- a/activemodel/lib/active_model/validations/numericality.rb
+++ b/activemodel/lib/active_model/validations/numericality.rb
@@ -9,10 +9,6 @@ module ActiveModel
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|