Make abstract optional

This commit is contained in:
Arun Kumar 2016-07-08 12:00:51 +05:30
parent 798998b73f
commit c1db82f19a
No known key found for this signature in database
GPG key ID: 6C40CA6462DEA424
4 changed files with 3 additions and 5 deletions

View file

@ -30,7 +30,6 @@ class Event < ActiveRecord::Base
validate :abstract_limit
validate :before_end_of_conference, on: :create
validates :title, presence: true
validates :abstract, presence: true
validates :event_type, presence: true
validates :program, presence: true
validates :max_attendees, numericality: { only_integer: true, greater_than_or_equal_to: 1, allow_nil: true }