lib/grumlin/shortcut_proxy.rb in grumlin-0.15.4 vs lib/grumlin/shortcut_proxy.rb in grumlin-0.15.6

- old
+ new

@@ -16,10 +16,10 @@ def method_missing(name, *args, **params) return @parent.public_send(name, *args, **params) if %i[__ g].include?(name) && !@parent.nil? return wrap_result(@object.public_send(name, *args, **params)) if @object.respond_to?(name) - return wrap_result(instance_exec(*args, **params, &@shortcuts[name])) if @shortcuts.key?(name) + return wrap_result(@shortcuts[name].apply(self, *args, **params)) if @shortcuts.key?(name) super end # For some reason the interpreter thinks it's private