Permalink
Browse files

correct documentation on initialize method to accept a single parameter

  • Loading branch information...
1 parent 2032304 commit 26b9e71b64bd09c43f192ebc4070d13920d926f5 @bradrobertson bradrobertson committed with vijaydev Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 26b9e71

Please sign in to comment.