lib/rack/api/runner.rb in rack-api-0.2.1 vs lib/rack/api/runner.rb in rack-api-0.2.2
- old
+ new
@@ -263,10 +263,10 @@
# Add middlewares to executation stack.
option(:middlewares, :merge).each {|middleware| builder.use(*middleware)}
# Apply helpers to app.
- helpers = option(:helpers)
+ helpers = option(:helpers, :merge)
app.extend *helpers unless helpers.empty?
builder.run(app)
builder.to_app
end