summaryrefslogtreecommitdiffstats
path: root/app/models/attachment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-28 16:13:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-28 16:13:39 +0000
commit4ded4277c51b8f35dc9eaa031c918e55470a44b5 (patch)
tree23ed025fdde0efd01bf016e4109a9fe3dddeac4f /app/models/attachment.rb
parentb60bedafc0589167b88053a98c2fc776d748fc74 (diff)
downloadredmine-4ded4277c51b8f35dc9eaa031c918e55470a44b5.tar.gz
redmine-4ded4277c51b8f35dc9eaa031c918e55470a44b5.zip
Activity view now uses events attributes.
Fixed: error on activity feed if it contains a document. git-svn-id: http://redmine.rubyforge.org/svn/trunk@876 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/attachment.rb')
-rw-r--r--app/models/attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 4591a1109..d2bcab33f 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -27,7 +27,7 @@ class Attachment < ActiveRecord::Base
acts_as_event :title => :filename,
:description => :filename,
- :url => Proc.new {|o| {:controller => 'attachment', :action => 'download', :id => o.id}}
+ :url => Proc.new {|o| {:controller => 'attachments', :action => 'download', :id => o.id}}
cattr_accessor :storage_path
@@storage_path = "#{RAILS_ROOT}/files"