Permalink
Browse files

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

…1.9 compat
  • Loading branch information...
1 parent 9ff6313 commit 8a21abe18030852ca7a2abadeabcdb89f70a3ec8 @binarylogic committed Jul 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 8a21abe

Please sign in to comment.