Permalink
Browse files

Rails 2.2.2 bug fix

  • Loading branch information...
binarylogic committed Sep 23, 2009
1 parent 1570bb8 commit 3773f7e5e497375854661bc9d4c5b73548c304fb
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/searchlogic/search.rb
@@ -96,7 +96,7 @@ def method_missing(name, *args, &block)
conditions[condition_name]
end
else
- scope = conditions.inject(klass.scoped(current_scope)) do |scope, condition|
+ scope = conditions.inject(klass.scoped(current_scope) || {}) do |scope, condition|
scope_name, value = condition
scope_name = normalize_scope_name(scope_name)
klass.send(scope_name, value) if !klass.respond_to?(scope_name)

0 comments on commit 3773f7e

Please sign in to comment.