app/services/membership_service.rb
Method redeem
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.redeem(membership:, actor:, notify: true)
raise Membership::InvitationAlreadyUsed.new(membership) if membership.accepted_at
# so we want to accept all the pending invitations this person has been sent within this org
# and we dont want any surprises if they already have some memberships.