Implements more embed codes for events
- refactor video_type collection to event model enumeration #26
This commit is contained in:
parent
2421eaf4ea
commit
03ba8d50f4
4 changed files with 10 additions and 6 deletions
|
|
@ -3,6 +3,10 @@ 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']
|
||||
|
||||
validates :video_type, inclusion: {in: VIDEO_TYPE}
|
||||
|
||||
acts_as_commentable
|
||||
|
||||
has_many :event_people, :dependent => :destroy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue