adds balloting_or_later? method to Budget

This commit is contained in:
Juanjo Bazán
2017-05-09 17:27:58 +02:00
parent ea3057bc04
commit 33e8ebf043
2 changed files with 50 additions and 0 deletions

View File

@@ -67,6 +67,10 @@ class Budget < ActiveRecord::Base
phase == "finished"
end
def balloting_or_later?
balloting? || reviewing_ballots? || finished?
end
def on_hold?
reviewing? || valuating? || reviewing_ballots?
end