Skip to content

Commit

Permalink
Adds round 3 to review round 2 votes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
beerlington committed Mar 27, 2014
1 parent b6a86d3 commit ae8bde5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions app/enums/round.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion config/initializers/current_round.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Rails.application.config.current_round = Round::Two.new
Rails.application.config.current_round = Round::Three.new

0 comments on commit ae8bde5

Please sign in to comment.