From ae8bde5fbeeaeab377eb86d78bf0f7e5c6b14dc7 Mon Sep 17 00:00:00 2001 From: beerlington Date: Thu, 27 Mar 2014 11:02:59 -0400 Subject: [PATCH] Adds round 3 to review round 2 votes Need to figure out a better way to do this since there isn't a round 3 and this is just sort of a hack --- app/enums/round.rb | 18 ++++++++++++++++++ config/initializers/current_round.rb | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/app/enums/round.rb b/app/enums/round.rb index 94357f6..4bf098c 100644 --- a/app/enums/round.rb +++ b/app/enums/round.rb @@ -47,3 +47,21 @@ def proposals Proposal.where(round2: true).order(:title) end end + +class Round::Three < Round + def text + 'Round 3' + end + + def total_votes + 0 + end + + def anonymous? + false + end + + def proposals + Proposal.none + end +end diff --git a/config/initializers/current_round.rb b/config/initializers/current_round.rb index 4fa0cd6..2dd8ffa 100644 --- a/config/initializers/current_round.rb +++ b/config/initializers/current_round.rb @@ -1 +1 @@ -Rails.application.config.current_round = Round::Two.new +Rails.application.config.current_round = Round::Three.new