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,
params,
current_user,
).deliver_now if Rails.env.preview? || Rails.env.production?
).deliver_now! if Rails.env.preview? || Rails.env.production?
end
render json: {}
end
@ -193,7 +193,7 @@ class ApplicationController < LinguaFrancaApplicationController
request,
params,
current_user,
).deliver_now if Rails.env.preview? || Rails.env.production?
).deliver_now! if Rails.env.preview? || Rails.env.production?
end
# raise the error if we are in development so that we can debug it
@ -343,7 +343,7 @@ class ApplicationController < LinguaFrancaApplicationController
request,
params,
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}"
end
end

4
app/controllers/conferences_controller.rb

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

Loading…
Cancel
Save