diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-06-09 23:07:54 -0400 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-10 11:50:42 -0400 |
commit | e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61 (patch) | |
tree | 008557fc0ba19667ece07f5390c835d71930fc0a /activemodel | |
parent | 983815632cc1d316c7c803a47be28f1abe6698fb (diff) | |
download | rails-e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61.tar.gz rails-e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61.tar.bz2 rails-e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61.zip |
Validators should at model level and not at AR:Base level [Closes #4804]
[#4804 state:resolved]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index f472f50f9b..7520e0331d 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -54,7 +54,7 @@ module ActiveModel attr_accessor :validation_context - class_attribute :_validators + class_inheritable_accessor :_validators self._validators = Hash.new { |h,k| h[k] = [] } end |