clarion/app/models/call_for_participation.rb

15 lines
282 B
Ruby

class CallForParticipation < ActiveRecord::Base
belongs_to :conference
def open?
self.opens_at.present? and self.opens_at < Time.now
end
def closed?
self.closes_at.present? and self.closes_at < Time.now
end
def in_progress?
open? and not closed?
end
end