Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* BugFix

 * SearchLogic should not be initialized for abstract classes
  • Loading branch information...
commit 22e90653f70237048d69a00e4e81a3ec85b2702f 1 parent 67ffef9
Christian Eichhorn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/searchlogic/named_scopes/column_conditions.rb
View
4 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
+end
Please sign in to comment.
Something went wrong with that request. Please try again.