1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Merge pull request #824 from namusyaka/patch-jruby

Fix JRuby's incorrect behavior when using utf-8 method name.
This commit is contained in:
Konstantin Haase 2014-01-08 00:42:43 -08:00
commit 326b60169b

View file

@ -1575,6 +1575,7 @@ module Sinatra
end
def generate_method(method_name, &block)
method_name = method_name.to_sym
define_method(method_name, &block)
method = instance_method method_name
remove_method method_name