discourse/app/controllers/admin/email_logs_controller.rb

16 lines
368 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class Admin::EmailLogsController < Admin::AdminController
def index
@email_logs = EmailLog.limit(50).includes(:user).order('created_at desc').all
render_serialized(@email_logs, EmailLogSerializer)
end
def test
requires_parameter(:email_address)
2013-02-07 09:45:24 -06:00
Jobs.enqueue(:test_email, to_address: params[:email_address])
2013-02-05 13:16:51 -06:00
render nothing: true
end
2013-02-07 09:45:24 -06:00
end