Skip to content

Commit c0bc920

Browse files
committed
Notify on new organization requests
1 parent 94c1e2b commit c0bc920

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/setup/organizations_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def create
1717

1818
if !@organization.errors.any?
1919
redirect_to organization_path(@organization), notice: 'Organization was successfully created.'
20+
# TODO: Background task
21+
NewOrganizationRequestMailer.request_email(@organization).deliver_now
2022
else
2123
render :new
2224
end

0 commit comments

Comments
 (0)