Refactor admin/call_for_booth controller

This commit is contained in:
nasia 2017-06-10 23:50:31 +03:00
parent 6a8b9f8d2d
commit a5ce1239f2
17 changed files with 182 additions and 18 deletions

View file

@ -1,8 +1,6 @@
class CallForBooth < ActiveRecord::Base
belongs_to :conference
has_one :conference
validates :start_date, :end_date, :booth_limit, presence: true
validate :before_end_of_conference
validate :start_date_before_end_date