From 4ded4277c51b8f35dc9eaa031c918e55470a44b5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 28 Oct 2007 16:13:39 +0000 Subject: 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 --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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" -- cgit v1.2.3