Skip to content

Commit

Permalink
* BugFix
Browse files Browse the repository at this point in the history
 * SearchLogic should not be initialized for abstract classes
  • Loading branch information
Christian Eichhorn committed May 5, 2011
1 parent 67ffef9 commit 22e9065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/searchlogic/named_scopes/column_conditions.rb
Expand Up @@ -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
Expand Down Expand Up @@ -257,4 +257,4 @@ def condition_scope_name(name)
end
end
end
end
end

0 comments on commit 22e9065

Please sign in to comment.