We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7461961 commit 2bf2c1aCopy full SHA for 2bf2c1a
CHANGELOG.md
@@ -9,6 +9,7 @@
9
#### Fixes
10
11
* Your contribution here.
12
+* [#2064](https://github.com/ruby-grape/grape/pull/2064): Fix Ruby 2.7 deprecation warning in `Grape::Middleware::Base#initialize` - [@skarger](https://github.com/skarger).
13
14
### 1.3.3 (2020/05/23)
15
lib/grape/middleware/base.rb
@@ -14,9 +14,9 @@ class Base
# @param [Rack Application] app The standard argument for a Rack middleware.
16
# @param [Hash] options A hash of options, simply stored for use by subclasses.
17
- def initialize(app, **options)
+ def initialize(app, options = {})
18
@app = app
19
- @options = default_options.merge(**options)
+ @options = default_options.merge(options)
20
@app_response = nil
21
end
22
0 commit comments