Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@vijaydev vijaydev authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.