diff options
author | James Lopez <james@jameslopez.es> | 2016-11-15 09:39:45 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:58 +0100 |
commit | 6a2737e6a82875311f71f451939b2732562533d4 (patch) | |
tree | 00ea2627d1103ba0c15375a570ff923b0296c790 /app | |
parent | 0ddf825ddf7bc480004919762b187390d0b900e9 (diff) | |
download | gitlab-ce-6a2737e6a82875311f71f451939b2732562533d4.tar.gz |
WIP - refactor events to use a generic build entity for some of the hybrid events
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/analytics_generic_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/analytics_generic_entity.rb b/app/serializers/analytics_generic_entity.rb index b007d9056d0..2692e9f21f1 100644 --- a/app/serializers/analytics_generic_entity.rb +++ b/app/serializers/analytics_generic_entity.rb @@ -23,7 +23,7 @@ class AnalyticsGenericEntity < Grape::Entity private def url_to(route, id = nil) - public_send("#{route}_url", options[:project].namespace, options[:project], id) + public_send("#{route}_url", request.project.namespace, request.project, id) end def interval_in_words(diff) |