summaryrefslogtreecommitdiffstats
path: root/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-12 14:25:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-12 14:25:23 +0000
commit2066b2f6665156670c7dcbff944cc3c5a827075d (patch)
treea27db9c640ea1164bdeabe24378f9b5419a314e9 /app/helpers/users_helper.rb
parent9e2d401f43d9136e887cb099a72ecc33d9dd88f5 (diff)
downloadredmine-2066b2f6665156670c7dcbff944cc3c5a827075d.tar.gz
redmine-2066b2f6665156670c7dcbff944cc3c5a827075d.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4497 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 37cecc05c..c0caffa4a 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -33,6 +33,10 @@ module UsersHelper
options
end
+ def user_mail_notification_options(user)
+ user.valid_notification_options.collect {|o| [l(o.last), o.first]}
+ end
+
def change_status_link(user)
url = {:controller => 'users', :action => 'update', :id => user, :page => params[:page], :status => params[:status], :tab => nil}