Skip to content

Commit

Permalink
Merge pull request #3439 from bradrobertson/master
Browse files Browse the repository at this point in the history
ActiveModel::Validator only takes one parameter, documentation had two params listed.
  • Loading branch information
vijaydev committed Oct 26, 2011
2 parents 408bbfe + 2e62af3 commit a89d16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/validator.rb
Expand Up @@ -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
Expand Down

0 comments on commit a89d16b

Please sign in to comment.