From 22e90653f70237048d69a00e4e81a3ec85b2702f Mon Sep 17 00:00:00 2001 From: Christian Eichhorn Date: Thu, 5 May 2011 18:34:11 +0200 Subject: [PATCH] * BugFix * SearchLogic should not be initialized for abstract classes --- lib/searchlogic/named_scopes/column_conditions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/searchlogic/named_scopes/column_conditions.rb b/lib/searchlogic/named_scopes/column_conditions.rb index b09b31fd..006dc241 100644 --- a/lib/searchlogic/named_scopes/column_conditions.rb +++ b/lib/searchlogic/named_scopes/column_conditions.rb @@ -60,7 +60,7 @@ def condition?(name) # We want to return true for any conditions that can be called, and while we're at it. We might as well # create the condition so we don't have to do it again. def respond_to?(*args) - super || (self != ::ActiveRecord::Base && !create_condition(args.first).blank?) + super || (self != ::ActiveRecord::Base && !self.abstract_class? && !create_condition(args.first).blank?) end private @@ -257,4 +257,4 @@ def condition_scope_name(name) end end end -end \ No newline at end of file +end