Files
nairobi/app/models/budget.rb
2016-05-23 13:57:36 +02:00

23 lines
277 B
Ruby

class Budget < ActiveRecord::Base
def on_hold?
phase == "on_hold"
end
def accepting?
phase == "accepting"
end
def selecting?
phase == "selecting"
end
def balloting?
phase == "balloting"
end
def finished?
phase == "finished"
end
end