show schedule in home page only if it is set as public

This commit is contained in:
Stella Rouzi 2014-04-02 20:07:42 +03:00
parent ddb2fa4fe9
commit 688557b7cb
4 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,5 @@
class CallForPapers < ActiveRecord::Base
attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes, :rating, :rating_desc
attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes, :rating, :rating_desc, :schedule_public
belongs_to :conference
validates_presence_of :start_date, :end_date, :hard_deadline