Skip to content

Commit

Permalink
Added comments for better understanding of new function compute_signu…
Browse files Browse the repository at this point in the history
…p_topics
  • Loading branch information
Palvit Garg committed Mar 20, 2022
1 parent 4b7bb61 commit bd86f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/signup_sheet_controller.rb
Expand Up @@ -490,7 +490,10 @@ def update_existing_topic(topic)
topic.save
redirect_to_sign_up params[:id]
end


# compute signup topics will compute 2 variables:
# @sign_up_topics: Contains list of all topics belonging to current assignment, but not bid by current team
# @bids: List of topics bid by current team and are part of current assignment, which participant/team belongs to
def compute_signup_topics(team_id)
@bids = team_id.nil? ? [] : Bid.where(team_id: team_id).order(:priority)
signed_up_topics = []
Expand Down

0 comments on commit bd86f5a

Please sign in to comment.