From 6feffe5f38ad82d50b112ed102f8370ed934c8c1 Mon Sep 17 00:00:00 2001 From: windock Date: Wed, 3 Mar 2010 01:59:42 +0200 Subject: whiny nil shouldn't depend on Active Record [#4092 status:resolved] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- activesupport/lib/active_support/whiny_nil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/whiny_nil.rb b/activesupport/lib/active_support/whiny_nil.rb index 11b05efac1..0b68e936f6 100644 --- a/activesupport/lib/active_support/whiny_nil.rb +++ b/activesupport/lib/active_support/whiny_nil.rb @@ -26,7 +26,7 @@ # mode. class NilClass WHINERS = [::Array] - WHINERS << ::ActiveRecord::Base if defined? ::ActiveRecord + WHINERS << ::ActiveRecord::Base if defined? ::ActiveRecord::Base METHOD_CLASS_MAP = Hash.new -- cgit v1.2.3