Merge pull request #60 from gopesht/fix_conference_create_without_start_end_date

Validations for start and end date
This commit is contained in:
Henne Vogelsang 2014-04-09 11:38:16 +02:00
commit 3628253624

View file

@ -51,7 +51,9 @@ class Conference < ActiveRecord::Base
validates_presence_of :title,
:short_title,
:social_tag
:social_tag,
:start_date,
:end_date
validates_uniqueness_of :short_title
validates_format_of :short_title, :with => /^[a-zA-Z0-9_-]*$/