mirror of https://github.com/rails/rails
Set default value to ActiveModel::Validator initializer attribute
Makes it easier to test its objects.
This commit is contained in:
parent
66c8740b98
commit
d4f46ee4fd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue