loomio/loomio

View on GitHub
app/services/membership_service.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method redeem has 36 lines of code (exceeds 25 allowed). Consider refactoring.
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.
Severity: Minor
Found in app/services/membership_service.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status