lib/searchlogic/named_scopes/column_conditions.rb in searchlogic-2.5.5 vs lib/searchlogic/named_scopes/column_conditions.rb in searchlogic-2.5.6
- old
+ new
@@ -58,11 +58,11 @@
end
# 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
def column_condition?(name)
return false if name.blank?
@@ -255,6 +255,6 @@
nil
end
end
end
end
-end
\ No newline at end of file
+end