提交 a89d16b3 编写于 作者: V Vijay Dev

Merge pull request #3439 from bradrobertson/master

ActiveModel::Validator only takes one parameter, documentation had two params listed.
......@@ -57,7 +57,7 @@ module ActiveModel #:nodoc:
# To add behavior to the initialize method, use the following signature:
#
# class MyValidator < ActiveModel::Validator
# def initialize(record, options)
# def initialize(options)
# super
# @my_custom_field = options[:field_name] || :first_name
# end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册