lib/rack/webconsole/sandbox.rb in rack-webconsole-0.0.1 vs lib/rack/webconsole/sandbox.rb in rack-webconsole-0.0.3
- old
+ new
@@ -8,10 +8,10 @@
# Catches all the undefined local variables and tries to retrieve them
# from `@locals`. If it doesn't find them, it falls back to the default
# method missing behavior.
def method_missing(method, *args, &block)
@locals ||= {}
- @locals[method] || super(method, *args, &block)
+ @locals[method.to_sym] || super(method, *args, &block)
end
# Makes the console use a fresh, new {Sandbox} with all local variables
# resetted.
#