app/models/assignment_team.rb
# Topic picked by the team for the assignment
# This method needs refactoring: it sounds like it returns a topic object but in fact it returns an id
Topic picked by the team for the assignment
This method needs refactoring: it sounds like it returns a topic object but in fact it returns an id
Topic picked by the team for the assignment This method needs refactoring : it sounds like it returns a topic object but in fact it returns an id
def topic
    team_topic = nil
    participants.each do |participant|
      team_topic = SignedUpTeam.topic_id(participant.parent_id, participant.user_id)
      break if team_topic
    end
    team_topic
  end
def topic team_topic = nil participants . each do | participant | team_topic = SignedUpTeam . topic_id ( participant . parent_id , participant . user_id ) break if team_topic end team_topic end
Topic picked by the team for the assignment
This method needs refactoring: it sounds like it returns a topic object but in fact it returns an id
Topic picked by the team for the assignment This method needs refactoring : it sounds like it returns a topic object but in fact it returns an id