lib/grape/middleware/base.rb in grape-1.4.0 vs lib/grape/middleware/base.rb in grape-1.5.0
- old
+ new
@@ -6,16 +6,17 @@
module Middleware
class Base
include Helpers
attr_reader :app, :env, :options
+
TEXT_HTML = 'text/html'
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)
@app_response = nil
end