Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use .binding when evaluating under a Procs context, this is for ruby …

…1.9 compat
  • Loading branch information...
commit 8a21abe18030852ca7a2abadeabcdb89f70a3ec8 1 parent 9ff6313
@binarylogic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/searchlogic/named_scopes/conditions.rb
View
2  lib/searchlogic/named_scopes/conditions.rb
@@ -54,7 +54,7 @@ def named_scope_options(name)
key = scopes.key?(name.to_sym) ? name.to_sym : primary_condition_name(name)
if key
- eval("options", scopes[key])
+ eval("options", scopes[key].binding)
else
nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.