Added event type for documents class.

pull/6827/head
Björn Blissing 10 years ago committed by Jens Ulferts
parent b3d3f5f407
commit 2baf560e37
  1. 4
      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

Loading…
Cancel
Save