From c52a266bb7d7e9cbb69a7851cde64433812552ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Blissing?= Date: Fri, 27 Jun 2014 18:12:53 +0200 Subject: [PATCH] Added event type for documents class. --- app/models/activity/document_activity_provider.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/activity/document_activity_provider.rb b/app/models/activity/document_activity_provider.rb index 0196bf5494..00e669d779 100644 --- a/app/models/activity/document_activity_provider.rb +++ b/app/models/activity/document_activity_provider.rb @@ -44,6 +44,10 @@ class Activity::DocumentActivityProvider < Activity::BaseActivityProvider "#{Document.model_name.human}: #{event['document_title']}" end + def event_type(event, activity) + 'document' + end + def event_path(event, activity) url_helpers.project_document_path(url_helper_parameter(event)) end