Skip to content

Commit 0b6df07

Browse files
committed
redirect users with no membership to organizations list + add org name in new_petition email subject
1 parent 9db9786 commit 0b6df07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def after_sign_in_path_for(user)
5353
elsif user.members.present?
5454
users_path
5555
else
56-
page_path("about")
56+
organizations_path
5757
end
5858
end
5959

app/mailers/organization_notifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def new_petition(petition)
1818

1919
I18n.with_locale(locale) do
2020
mail(
21-
subject: 'New Application',
21+
subject: "New Application - #{organization.name}",
2222
bcc: organization.users.joins(:members).where(members: { manager: true }).pluck(:email).uniq
2323
)
2424
end

0 commit comments

Comments
 (0)