Skip to content

Commit f9e1f31

Browse files
committed
Hrack::Server requires the initialize method
1 parent ff4b7b2 commit f9e1f31

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .rubocop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,7 @@ Layout/SpaceBeforeBrackets:
124124
Rails/EnvironmentVariableAccess:
125125
Enabled: true
126126
AllowReads: true
127+
128+
# Hrack::Server requires the `initialize` method
129+
Style/RedundantInitialize:
130+
Enabled: false

Diff for: lib/hrack/server.rb

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class Server
88

99
PLAIN_TYPE = { 'Content-Type' => 'text/plain' }.freeze
1010

11+
def initialize(config = {}); end
12+
1113
def call(env)
1214
dup._call env
1315
end

0 commit comments

Comments
 (0)