aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-10-26 07:27:15 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2011-10-26 07:27:15 -0700
commita89d16b39b2af5276154d06e349b6a8705e13868 (patch)
treed0d3cd5ba536f44973c94241d959d6748656aa26
parent408bbfe6bdc78a73afe45718a41ea86b97bf0e5a (diff)
parent2e62af310d98fba78f338d916f7c17996446bc40 (diff)
downloadrails-a89d16b39b2af5276154d06e349b6a8705e13868.tar.gz
rails-a89d16b39b2af5276154d06e349b6a8705e13868.tar.bz2
rails-a89d16b39b2af5276154d06e349b6a8705e13868.zip
Merge pull request #3439 from bradrobertson/master
ActiveModel::Validator only takes one parameter, documentation had two params listed.
-rw-r--r--activemodel/lib/active_model/validator.rb2
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