aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-09 08:12:40 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-09 08:12:40 -0800
commit0fe64f4273d055f4fbca866ea6e05bf05a76a31c (patch)
tree7fc64e861faa3e7ab2efccc6ab57e7ccc350915c
parenta1610f540827dc0e0b1879f07cde427d9c25d500 (diff)
parentd4f46ee4fd666f458098b144c1451ce361948b35 (diff)
downloadrails-0fe64f4273d055f4fbca866ea6e05bf05a76a31c.tar.gz
rails-0fe64f4273d055f4fbca866ea6e05bf05a76a31c.tar.bz2
rails-0fe64f4273d055f4fbca866ea6e05bf05a76a31c.zip
Merge pull request #8848 from Irio/master
Set default value to ActiveModel::Validator initializer attribute
-rw-r--r--activemodel/lib/active_model/validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb
index d51f4d1936..f989b21140 100644
--- a/activemodel/lib/active_model/validator.rb
+++ b/activemodel/lib/active_model/validator.rb
@@ -103,7 +103,7 @@ module ActiveModel
end
# Accepts options that will be made available through the +options+ reader.
- def initialize(options)
+ def initialize(options = {})
@options = options.freeze
end