Browse files

Merge pull request #3439 from bradrobertson/master

ActiveModel::Validator only takes one parameter, documentation had two params listed.
  • Loading branch information...
2 parents 408bbfe + 2e62af3 commit a89d16b39b2af5276154d06e349b6a8705e13868 @vijaydev vijaydev committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/validator.rb
View
2 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

0 comments on commit a89d16b

Please sign in to comment.