code layout clean up of wiki_content_updated() at app/models/mailer.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7464 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e2a48eaa75
commit
3505339007
@ -217,8 +217,12 @@ class Mailer < ActionMailer::Base
|
|||||||
cc(wiki_content.page.wiki.watcher_recipients + wiki_content.page.watcher_recipients - recipients)
|
cc(wiki_content.page.wiki.watcher_recipients + wiki_content.page.watcher_recipients - recipients)
|
||||||
subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_updated, :id => wiki_content.page.pretty_title)}"
|
subject "[#{wiki_content.project.name}] #{l(:mail_subject_wiki_content_updated, :id => wiki_content.page.pretty_title)}"
|
||||||
body :wiki_content => wiki_content,
|
body :wiki_content => wiki_content,
|
||||||
:wiki_content_url => url_for(:controller => 'wiki', :action => 'show', :project_id => wiki_content.project, :id => wiki_content.page.title),
|
:wiki_content_url => url_for(:controller => 'wiki', :action => 'show',
|
||||||
:wiki_diff_url => url_for(:controller => 'wiki', :action => 'diff', :project_id => wiki_content.project, :id => wiki_content.page.title, :version => wiki_content.version)
|
:project_id => wiki_content.project,
|
||||||
|
:id => wiki_content.page.title),
|
||||||
|
:wiki_diff_url => url_for(:controller => 'wiki', :action => 'diff',
|
||||||
|
:project_id => wiki_content.project, :id => wiki_content.page.title,
|
||||||
|
:version => wiki_content.version)
|
||||||
render_multipart('wiki_content_updated', body)
|
render_multipart('wiki_content_updated', body)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user