mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
15 lines
No EOL
371 B
Ruby
15 lines
No EOL
371 B
Ruby
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)
|
|
Jobs.enqueue(:test_email, to_address: params[:email_address])
|
|
render nothing: true
|
|
end
|
|
|
|
end |