diff app/helpers/users_helper.rb @ 511:107d36338b70 live

Merge from branch "cannam"
author Chris Cannam
date Thu, 14 Jul 2011 10:43:07 +0100
parents af80e5618e9b
children cbb26bc654de
line wrap: on
line diff
--- a/app/helpers/users_helper.rb	Thu Jun 09 16:51:06 2011 +0100
+++ b/app/helpers/users_helper.rb	Thu Jul 14 10:43:07 2011 +0100
@@ -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}