lib/grape/middleware/base.rb in grape-1.5.1 vs lib/grape/middleware/base.rb in grape-1.5.2
- old
+ new
@@ -13,12 +13,12 @@
include Grape::DSL::Headers
# @param [Rack Application] app The standard argument for a Rack middleware.
# @param [Hash] options A hash of options, simply stored for use by subclasses.
- def initialize(app, **options)
+ def initialize(app, *options)
@app = app
- @options = default_options.merge(options)
+ @options = options.any? ? default_options.merge(options.shift) : default_options
@app_response = nil
end
def default_options
{}