Commit 5ad61afc authored by Francisco Juan's avatar Francisco Juan

Fix author of document changes

parent 40fe26c2
...@@ -20,9 +20,7 @@ class Document < ActiveRecord::Base ...@@ -20,9 +20,7 @@ class Document < ActiveRecord::Base
acts_as_journalized :event_title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"}, 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_url => Proc.new {|o| {:controller => 'documents', :action => 'show', :id => o.journaled_id}},
:event_author => (Proc.new do |o| :event_author => Proc.new {|o| o.user}
o.attachments.find(:first, :order => "#{Attachment.table_name}.created_on ASC").try(:author)
end)
acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
......
Markdown is supported
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