app/services/pro_membership_manager.rb
# Unset the user's plan, but allow their current membership to continue. Only
# useful when the user is on a recurring plan.
Unset the user's plan, but allow their current membership to continue. Only
useful when the user is on a recurring plan.
Unset the user ' s plan but allow their current membership to continue . Only useful when the user is on a recurring plan .
def cancel!
    @user.pro_membership_plan_id = nil
    @user.save!
    ProMailer.delay.cancel_email(@user)
  end
def cancel! @user . pro_membership_plan_id = nil @user . save! ProMailer . delay . cancel_email ( @user ) end
Unset the user's plan, but allow their current membership to continue.
Unset the user ' s plan but allow their current membership to continue .