lib/conjur/has_id.rb in conjur-api-2.4.0 vs lib/conjur/has_id.rb in conjur-api-2.5.1
- old
+ new
@@ -3,9 +3,9 @@
def to_json(options = {})
{ id: id }
end
def id
- path_components[-1]
+ path_components[2..-1].join('/')
end
end
end
\ No newline at end of file