lib/acfs/middleware/base.rb in acfs-1.5.1 vs lib/acfs/middleware/base.rb in acfs-1.6.0
- old
+ new
@@ -6,12 +6,12 @@
# Can be used as super class for custom middleware implementations.
#
class Base
attr_reader :app, :options
- def initialize(app, options = {})
+ def initialize(app, **opts)
@app = app
- @options = options
+ @options = opts
end
def call(request)
if respond_to? :response
request.on_complete {|res, nxt| response(res, nxt) }