Permalink
Browse files

correct documentation on initialize method to accept a single parameter

  • Loading branch information...
1 parent 408bbfe commit 2e62af310d98fba78f338d916f7c17996446bc40 @bradrobertson bradrobertson committed 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 2e62af3

Please sign in to comment.