app/models/applications/application_for_offering.rb
def drop_reviewer(reviewer)
    if reviewer.is_a?(Integer)
      r = reviewers.find_by_offering_reviewer_id(reviewer)
    elsif reviewer.is_a?(CommitteeMember)  
      r = reviewers.find_by_committee_member_id(reviewer.id)
    end
    r.destroy
    self.save
  end
# Drops an ApplicationReviewer from this application. Parameter can be either an OfferingReviewer ID or a CommitteeMember object.
Drops an ApplicationReviewer from this application. Parameter can be either an OfferingReviewer ID or a CommitteeMember object.
Drops an ApplicationReviewer from this application . Parameter can be either an OfferingReviewer ID or a CommitteeMember object .
def drop_reviewer(reviewer)
    if reviewer.is_a?(Integer)
      r = reviewers.find_by_offering_reviewer_id(reviewer)
    elsif reviewer.is_a?(CommitteeMember)  
      r = reviewers.find_by_committee_member_id(reviewer.id)
    end
    r.destroy
    self.save
  end
def drop_reviewer ( reviewer ) if reviewer . is_a? ( Integer ) r = reviewers . find_by_offering_reviewer_id ( reviewer ) elsif reviewer . is_a? ( CommitteeMember ) r = reviewers . find_by_committee_member_id ( reviewer . id ) end r . destroy self . save end
Drops an ApplicationReviewer from this application.
Drops an ApplicationReviewer from this application .
reviewer