aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validator.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-05-11 15:36:09 +0200
committerCarl Lerche <carllerche@mac.com>2010-05-13 13:57:37 -0700
commit92160219a8bf17bd435252304319c094e56e5849 (patch)
treed6768948321481bcea35b8d06cba82b5f528d9ac /activemodel/lib/active_model/validator.rb
parent9131a88bb8e82f139ec49b4057fb6065ba0a2c6a (diff)
downloadrails-92160219a8bf17bd435252304319c094e56e5849.tar.gz
rails-92160219a8bf17bd435252304319c094e56e5849.tar.bz2
rails-92160219a8bf17bd435252304319c094e56e5849.zip
minor changes to instance level validations implementation based on feedback from José Valim
Diffstat (limited to 'activemodel/lib/active_model/validator.rb')
-rw-r--r--activemodel/lib/active_model/validator.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb
index 906d239bcc..56179c1a6c 100644
--- a/activemodel/lib/active_model/validator.rb
+++ b/activemodel/lib/active_model/validator.rb
@@ -88,6 +88,9 @@ module ActiveModel #:nodoc:
# klass.send :attr_accessor, :custom_attribute
# end
# end
+ #
+ # This setup method is only called when used with validation macros or the
+ # class level <tt>validates_with</tt> method.
#
class Validator
attr_reader :options