Skip to content
Browse files

whiny nil shouldn't depend on Active Record [#4092 status:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent b4b0c4c commit 6feffe5f38ad82d50b112ed102f8370ed934c8c1 @windock windock committed with josevalim Mar 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/whiny_nil.rb
View
2 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

2 comments on commit 6feffe5

@snusnu
snusnu commented on 6feffe5 Mar 3, 2010

I tried to dig at the root of this problem, and my findings can be found at

http://github.com/rails/rails/commit/f221a6f19f4cee31e2d103ea9a1930f59223fc25#comments

@josevalim
Ruby on Rails member

Yes, you are right! Could you please provide a patch?

Please sign in to comment.
Something went wrong with that request. Please try again.