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:
parent
1d9162440f
commit
e4ef90871d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue