Add vimeo video support for events

#26
This commit is contained in:
Christian Bruckmayer 2014-03-16 12:05:44 +01:00
parent 0bbace4667
commit c0af0a2897
3 changed files with 4 additions and 1 deletions

View file

@ -3,7 +3,7 @@ class Event < ActiveRecord::Base
has_paper_trail
attr_accessible :title, :subtitle, :abstract, :description, :event_type_id, :people_attributes, :person, :proposal_additional_speakers, :track_id, :video_id, :video_type, :require_registration, :difficulty_level_id
VIDEO_TYPE = [YOUTUBE = 'YouTube', SLIDE_SHARE = 'SlideShare', FLICKR = "Flickr"]
VIDEO_TYPE = [YOUTUBE = 'YouTube', SLIDE_SHARE = 'SlideShare', FLICKR = "Flickr", VIMEO = "Vimeo"]
validates :video_type, inclusion: {in: VIDEO_TYPE}