Skip to content

Commit

Permalink
Rename confusing _resource arg in InvitationsController
Browse files Browse the repository at this point in the history
Given this method argument is not used, I think it's clearer not to give
it a name, particularly one which is easily confused with the
`#resource` accessor method.
  • Loading branch information
floehopper committed Oct 4, 2023
1 parent e5b9341 commit ed86578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def resend

private

def after_invite_path_for(_resource)
def after_invite_path_for(_)
if invitee_requires_2sv(resource)
users_path
else
Expand Down

0 comments on commit ed86578

Please sign in to comment.