fix bug in user edit mailer view
This commit is contained in:
parent
01e3b3cc26
commit
28fc093a01
2 changed files with 3 additions and 1 deletions
|
|
@ -179,7 +179,9 @@ class User < ActiveRecord::Base
|
|||
######### Mailer #######################
|
||||
def mail(job, *args)
|
||||
pref = job.to_s.gsub('Job::Mail', '').underscore
|
||||
puts pref
|
||||
unless self.disable_mail || self.user_preferences.exists?(:email_type => pref)
|
||||
puts 'im mailin'
|
||||
Resque.enqueue(job, *args)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@
|
|||
%br
|
||||
%p.checkbox_select
|
||||
= type.label t('.request_acceptence')
|
||||
= type.check_box :request_acceptence, {:checked => @email_prefs['request_accpetence']}, false, true
|
||||
= type.check_box :request_acceptence, {:checked => @email_prefs['request_acceptance']}, false, true
|
||||
|
||||
%br
|
||||
= f.submit t('.change')
|
||||
|
|
|
|||
Loading…
Reference in a new issue