diff options
author | James Lopez <james@jameslopez.es> | 2016-11-17 15:22:27 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 15:22:27 +0300 |
commit | ed39d61d746925e49d952bd8169499d3200ae68b (patch) | |
tree | 33128144980f4b62e96309e9ed4c23133422159b /app/serializers/analytics_merge_request_entity.rb | |
parent | f9de157e70234748cf4285fafda7b3ec13862f5c (diff) |
refactor events facade so it uses separate classes and refactor query stuff
Diffstat (limited to 'app/serializers/analytics_merge_request_entity.rb')
-rw-r--r-- | app/serializers/analytics_merge_request_entity.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/serializers/analytics_merge_request_entity.rb b/app/serializers/analytics_merge_request_entity.rb new file mode 100644 index 00000000000..888265eaa38 --- /dev/null +++ b/app/serializers/analytics_merge_request_entity.rb @@ -0,0 +1,7 @@ +class AnalyticsMergeRequestEntity < AnalyticsIssueEntity + expose :state + + expose :url do |object| + url_to(:namespace_project_merge_request, id: object[:iid].to_s) + end +end |