diff app/helpers/users_helper.rb @ 117:af80e5618e9b redmine-1.1

* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author Chris Cannam
date Thu, 13 Jan 2011 12:53:21 +0000
parents 94944d00e43c
children cbb26bc654de
line wrap: on
line diff
--- a/app/helpers/users_helper.rb	Fri Nov 19 14:05:24 2010 +0000
+++ b/app/helpers/users_helper.rb	Thu Jan 13 12:53:21 2011 +0000
@@ -33,6 +33,10 @@
     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}