Skip to content

Commit

Permalink
fix issue with combining named and unnamed function args
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Sep 26, 2024
1 parent fc047ac commit 8bb48f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/roles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb48f5

Please sign in to comment.