提交 0fe64f42 编写于 作者: C Carlos Antonio da Silva

Merge pull request #8848 from Irio/master

Set default value to ActiveModel::Validator initializer attribute
......@@ -103,7 +103,7 @@ def self.kind
end
# Accepts options that will be made available through the +options+ reader.
def initialize(options)
def initialize(options = {})
@options = options.freeze
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册