2015-04-20 18:55:06 +03:00
|
|
|
class CallForParticipation < ActiveRecord::Base
|
|
|
|
belongs_to :conference
|
2015-05-23 18:21:16 +03:00
|
|
|
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
|
2015-04-20 18:55:06 +03:00
|
|
|
end
|