Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

Commit 64568e4

Browse files
author
Marieke GUEYE
committed
route_xxx is deprecated in grape > 0.16.0
1 parent 92f0e9b commit 64568e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/newrelic-grape/instrument.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def route
2727
end
2828

2929
def request_path
30-
path = route.route_path[1..-1].tr('/', '-')
30+
path = route.path[1..-1].tr('/', '-')
3131
path.sub!(/\(\.:format\)\z/, '')
32-
route.route_version && path.sub!(':version', route.route_version)
32+
route.version && path.sub!(':version', route.version)
3333

3434
path
3535
end

0 commit comments

Comments
 (0)