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

Fix JRuby's incorrect behavior when using utf-8 method name.

This commit is contained in:
namusyaka 2014-01-07 18:59:19 +09:00
parent 1d9162440f
commit e4ef90871d

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