mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
correct documentation on initialize method to accept a single parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user