mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
correct documentation on initialize method to accept a single parameter
This commit is contained in:
parent
408bbfe6bd
commit
2e62af310d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue