lib/utopia/middleware/content.rb in utopia-0.9.61 vs lib/utopia/middleware/content.rb in utopia-0.10.0
- old
+ new
@@ -119,10 +119,17 @@
if node
if request.head?
return [200, {}, []]
else
response = Rack::Response.new
- node.process!(request, response)
+
+ attributes = {}
+
+ if request.controller
+ attributes = request.controller.to_hash
+ end
+
+ node.process!(request, response, attributes)
return response.finish
end
else
return @app.call(env)
end