From e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Wed, 9 Jun 2010 23:07:54 -0400 Subject: Validators should at model level and not at AR:Base level [Closes #4804] [#4804 state:resolved] Signed-off-by: David Heinemeier Hansson --- activemodel/lib/active_model/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model') 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 -- cgit v1.2.3