mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
Fix all the errors to get our tests green on Rails 5.1.
This commit is contained in:
@ -11,7 +11,7 @@ class Admin::EmailController < Admin::AdminController
|
||||
params.require(:email_address)
|
||||
begin
|
||||
Jobs::TestEmail.new.execute(to_address: params[:email_address])
|
||||
render nothing: true
|
||||
render body: nil
|
||||
rescue => e
|
||||
render json: { errors: [e.message] }, status: 422
|
||||
end
|
||||
|
Reference in New Issue
Block a user