OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/config/initializers/user_invitation.rb

13 lines
422 B

Rails.application.config.after_initialize do
##
# The default behaviour is to send the user a sign-up mail
# when they were invited.
OpenProject::Notifications.subscribe UserInvitation::Events.user_invited do |token|
Mails::InvitationJob.perform_later(token)
end
OpenProject::Notifications.subscribe UserInvitation::Events.user_reinvited do |token|
Mails::InvitationJob.perform_later(token)
end
end