lib/grape/middleware/base.rb in grape-0.17.0 vs lib/grape/middleware/base.rb in grape-0.18.0
- old
+ new
@@ -8,12 +8,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 = default_options.merge(**options)
end
def default_options
{}
end