Skip to content
Snippets Groups Projects
Commit 5ad61afc authored by Francisco Juan's avatar Francisco Juan
Browse files

Fix author of document changes

parent 40fe26c2
Branches
Tags
No related merge requests found
......@@ -20,9 +20,7 @@ class Document < ActiveRecord::Base
acts_as_journalized :event_title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"},
:event_url => Proc.new {|o| {:controller => 'documents', :action => 'show', :id => o.journaled_id}},
:event_author => (Proc.new do |o|
o.attachments.find(:first, :order => "#{Attachment.table_name}.created_on ASC").try(:author)
end)
:event_author => Proc.new {|o| o.user}
acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment