Skip to content
This repository
Browse code

Merge pull request #3439 from bradrobertson/master

ActiveModel::Validator only takes one parameter, documentation had two params listed.
  • Loading branch information...
commit a89d16b39b2af5276154d06e349b6a8705e13868 2 parents 408bbfe + 2e62af3
Vijay Dev authored
2  activemodel/lib/active_model/validator.rb
@@ -57,7 +57,7 @@ module ActiveModel #:nodoc:
57 57
   # To add behavior to the initialize method, use the following signature:
58 58
   #
59 59
   #   class MyValidator < ActiveModel::Validator
60  
-  #     def initialize(record, options)
  60
+  #     def initialize(options)
61 61
   #       super
62 62
   #       @my_custom_field = options[:field_name] || :first_name
63 63
   #     end

0 notes on commit a89d16b

Please sign in to comment.
Something went wrong with that request. Please try again.