From bcbd7b3a49d52e4db98ac5b583e1671acdebbe3e Mon Sep 17 00:00:00 2001 From: rohit Date: Tue, 3 Aug 2010 16:04:05 +0530 Subject: [PATCH] ActiveRecord::Base.abstract_class? should return false not nil. --- activerecord/lib/active_record/base.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 12736d3..f02314d 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -828,7 +828,7 @@ module ActiveRecord #:nodoc: # Returns whether this class is an abstract class or not. def abstract_class? - defined?(@abstract_class) && @abstract_class == true + defined?(@abstract_class) ? @abstract_class : false end def respond_to?(method_id, include_private = false) -- 1.7.0.4