mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
cascade NoMethodError to super for better response to user
This commit is contained in:
parent
28b12858d6
commit
0da75abb02
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module Sinatra
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(name, *args)
|
def method_missing(name, *args)
|
||||||
@response.send(name, *args)
|
@response.send(name, *args) rescue super
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue