Browse files

Clarify ActiveModel::Validator initialization in docs.

As discussed with @josevalim on Ruby Rogues Parley.
  • Loading branch information...
1 parent 045f019 commit 53c22e097ad416e32a216fdf0fd70d9a1a47cecf @henrik henrik committed Feb 9, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 activemodel/lib/active_model/validator.rb
View
3 activemodel/lib/active_model/validator.rb
@@ -60,6 +60,9 @@ module ActiveModel
# end
# end
#
+ # Note that the validator is initialized only once for the whole application
+ # lifecycle, and not on each validation run.
+ #
# The easiest way to add custom validators for validating individual attributes
# is with the convenient <tt>ActiveModel::EachValidator</tt>.
#

0 comments on commit 53c22e0

Please sign in to comment.