switched render with response
The intention is, that everything gets rendered first and after that packed to a response. This way, error checking on the response can be done after rendering.
This commit is contained in:
parent
4365b0ff13
commit
3ec99843eb
@ -7,7 +7,7 @@ module Zero
|
||||
# with the environment and calls #render on it.
|
||||
class Controller
|
||||
def self.call(env)
|
||||
new(Request.new(env)).render
|
||||
new(Request.new(env)).response
|
||||
end
|
||||
|
||||
def initialize(request)
|
||||
@ -23,7 +23,7 @@ module Zero
|
||||
end
|
||||
|
||||
def render
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError.new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user