From 8bb48f554ac594e5123d78c6847298057bdd576f Mon Sep 17 00:00:00 2001 From: briri Date: Thu, 26 Sep 2024 08:28:03 -0700 Subject: [PATCH] fix issue with combining named and unnamed function args --- app/controllers/roles_controller.rb | 2 +- app/mailers/user_mailer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index b40c559f61..51d4a515e3 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -55,7 +55,7 @@ def create if @role.save if registered deliver_if(recipients: user, key: 'users.added_as_coowner') do |r| - UserMailer.sharing_notification(@role, r, inviter: current_user) + UserMailer.sharing_notification(@role, r, current_user) .deliver_now end end diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 56267ee547..e676e18433 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -48,7 +48,7 @@ def question_answered(data, user, answer, _options_string) end # rubocop:enable Metrics/AbcSize - def sharing_notification(role, user, inviter:) + def sharing_notification(role, user, inviter) @role = role @user = user @user_email = @user.email