Skip to content

Commit 7e0c4dc

Browse files
committed
make routing_tokens protected rather than private
1 parent 4a1d99a commit 7e0c4dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/webmachine/adapters/rack.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def call(env)
9292
rack_res.finish
9393
end
9494

95+
protected
96+
def routing_tokens(rack_req)
97+
nil # no-op for default, un-mapped rack adapter
98+
end
99+
95100
private
96101
def build_webmachine_request(rack_req, headers)
97102
Webmachine::Request.new(rack_req.request_method,
@@ -102,10 +107,6 @@ def build_webmachine_request(rack_req, headers)
102107
)
103108
end
104109

105-
def routing_tokens(rack_req)
106-
nil # no-op for default, un-mapped rack adapter
107-
end
108-
109110
class RackResponse
110111
ONE_FIVE = '1.5'.freeze
111112

@@ -179,6 +180,7 @@ def each
179180
end # class Rack
180181

181182
class RackMapped < Rack
183+
protected
182184
def routing_tokens(rack_req)
183185
routing_match = rack_req.path_info.match(Webmachine::Request::ROUTING_PATH_MATCH)
184186
routing_path = routing_match ? routing_match[1] : ""

0 commit comments

Comments
 (0)