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

Commit 04f1951

Browse files
author
Marieke GUEYE
committed
workinf with grape 0.16.x
1 parent 92f0e9b commit 04f1951

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.2.0
2+
3+
* Work with grape 0.16.0 [@mkou](https://github.com/mkou)
4+
15
# 2.1.0 (12/08/2014)
26

37
* Work with grape 0.14.0 [@dblock](https://github.com/dblock)

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)