diff options
author | bradrobertson <brad@influitive.com> | 2011-10-26 09:31:37 -0400 |
---|---|---|
committer | bradrobertson <brad@influitive.com> | 2011-10-26 09:31:37 -0400 |
commit | 2e62af310d98fba78f338d916f7c17996446bc40 (patch) | |
tree | d0d3cd5ba536f44973c94241d959d6748656aa26 /activemodel | |
parent | 408bbfe6bdc78a73afe45718a41ea86b97bf0e5a (diff) | |
download | rails-2e62af310d98fba78f338d916f7c17996446bc40.tar.gz rails-2e62af310d98fba78f338d916f7c17996446bc40.tar.bz2 rails-2e62af310d98fba78f338d916f7c17996446bc40.zip |
correct documentation on initialize method to accept a single parameter
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 0e444738ba..35ec98c822 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/activemodel/lib/active_model/validator.rb @@ -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 |