code layout clean up of account_activation_request() at app/models/mailer.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7465 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-23 06:56:24 +00:00
parent 3505339007
commit b89bf7eaf1
1 changed files with 3 additions and 1 deletions

View File

@ -251,7 +251,9 @@ class Mailer < ActionMailer::Base
recipients User.active.find(:all, :conditions => {:admin => true}).collect { |u| u.mail }.compact
subject l(:mail_subject_account_activation_request, Setting.app_title)
body :user => user,
:url => url_for(:controller => 'users', :action => 'index', :status => User::STATUS_REGISTERED, :sort_key => 'created_on', :sort_order => 'desc')
:url => url_for(:controller => 'users', :action => 'index',
:status => User::STATUS_REGISTERED,
:sort_key => 'created_on', :sort_order => 'desc')
render_multipart('account_activation_request', body)
end