app/services/rebels/create_service.rb
def delete_existing_rebel_if_no_local_group(email)
      existing_rebel = Rebel.where(email: email, local_group_id: nil)&.take
      if existing_rebel
        Rebels::DeleteService.new(rebel: existing_rebel).run!
      end
    end
# We prefer a new and clean signup than keeping an old record that is not
# linked to a local group
We prefer a new and clean signup than keeping an old record that is not
linked to a local group
We prefer a new and clean signup than keeping an old record that is not linked to a local group
def delete_existing_rebel_if_no_local_group(email)
      existing_rebel = Rebel.where(email: email, local_group_id: nil)&.take
      if existing_rebel
        Rebels::DeleteService.new(rebel: existing_rebel).run!
      end
    end
def delete_existing_rebel_if_no_local_group ( email ) existing_rebel = Rebel . where ( email : email , local_group_id : nil ) &. take if existing_rebel Rebels :: DeleteService . new ( rebel : existing_rebel ) . run! end end
We prefer a new and clean signup than keeping an old record that is not
linked to a local group
We prefer a new and clean signup than keeping an old record that is not linked to a local group
email