Browse Source

Fixed mailer

development
Godwin 9 years ago
parent
commit
e5123a18e5
  1. 6
      app/controllers/application_controller.rb
  2. 4
      app/controllers/conferences_controller.rb

6
app/controllers/application_controller.rb

@ -138,7 +138,7 @@ class ApplicationController < LinguaFrancaApplicationController
request, request,
params, params,
current_user, current_user,
).deliver_now if Rails.env.preview? || Rails.env.production? ).deliver_now! if Rails.env.preview? || Rails.env.production?
end end
render json: {} render json: {}
end end
@ -193,7 +193,7 @@ class ApplicationController < LinguaFrancaApplicationController
request, request,
params, params,
current_user, current_user,
).deliver_now if Rails.env.preview? || Rails.env.production? ).deliver_now! if Rails.env.preview? || Rails.env.production?
end end
# raise the error if we are in development so that we can debug it # raise the error if we are in development so that we can debug it
@ -343,7 +343,7 @@ class ApplicationController < LinguaFrancaApplicationController
request, request,
params, params,
current_user, current_user,
).deliver_now if Rails.env.preview? || Rails.env.production? ).deliver_now! if Rails.env.preview? || Rails.env.production?
logger.info "Missing translation found for: #{key}" logger.info "Missing translation found for: #{key}"
end end
end end

4
app/controllers/conferences_controller.rb

@ -392,7 +392,7 @@ class ConferencesController < ApplicationController
@subject, @subject,
@content, @content,
current_user, current_user,
@this_conference).deliver_now @this_conference).deliver_now!
elsif params[:button] == 'preview' elsif params[:button] == 'preview'
@email_sent = :preview @email_sent = :preview
elsif params[:button] == 'send' elsif params[:button] == 'send'
@ -1006,7 +1006,7 @@ class ConferencesController < ApplicationController
@subject, @subject,
@body, @body,
current_user, current_user,
@this_conference).deliver_now @this_conference).deliver_now!
end end
return render 'conferences/register' return render 'conferences/register'
when 'locations' when 'locations'

Loading…
Cancel
Save