Merge pull request #23 from bjornblissing/dev2

Added event type for documents class.
pull/6827/head
ulferts 10 years ago
commit e58cbf5a60
  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