23 lines
277 B
Ruby
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 |