lib/sanford/route.rb in sanford-0.11.1 vs lib/sanford/route.rb in sanford-0.12.0
- old
+ new
@@ -15,10 +15,16 @@
def validate!
@handler_class = constantize_handler_class(@handler_class_name)
end
def run(request, server_data)
- SanfordRunner.new(self.handler_class, request, server_data).run
+ SanfordRunner.new(self.handler_class, {
+ :request => request,
+ :params => request.params,
+ :logger => server_data.logger,
+ :router => server_data.router,
+ :template_source => server_data.template_source
+ }).run
end
private
def constantize_handler_class(handler_class_name)