1
0
Fork 0
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:
bradrobertson 2011-10-26 09:31:37 -04:00
parent 408bbfe6bd
commit 2e62af310d

View file

@ -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