Skip to content

Commit

Permalink
Use .binding when evaluating under a Procs context, this is for ruby …
Browse files Browse the repository at this point in the history
…1.9 compat
  • Loading branch information
binarylogic committed Jul 30, 2009
1 parent 9ff6313 commit 8a21abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchlogic/named_scopes/conditions.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8a21abe

Please sign in to comment.