summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 07:02:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 07:02:26 +0000
commit8a13595c64e8139be06209aea98396d9798c9bef (patch)
tree77781bd7f197b5a546a99814a39f84052ce4612d /app/models/mailer.rb
parent7845843596674dc51da1cc96c406e2875db25c9c (diff)
downloadredmine-8a13595c64e8139be06209aea98396d9798c9bef.tar.gz
redmine-8a13595c64e8139be06209aea98396d9798c9bef.zip
Merged r5230 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@5568 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r--app/models/mailer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index 6d6a97246..4dbf5602d 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -114,11 +114,11 @@ class Mailer < ActionMailer::Base
added_to_url = ''
case container.class.name
when 'Project'
- added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
+ added_to_url = url_for(:controller => 'files', :action => 'index', :project_id => container)
added_to = "#{l(:label_project)}: #{container}"
recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
when 'Version'
- added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container.project_id)
+ added_to_url = url_for(:controller => 'files', :action => 'index', :project_id => container.project)
added_to = "#{l(:label_version)}: #{container.name}"
recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
when 'Document'