Sha256: f69db76957e6d71449dfd6285e0c23d0ac1ffad31ec6cc823316dddbea18094e
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
class Video < Transit::Context alias_attribute :source, :body def self.sources ['URL', 'Uploaded Video', 'YouTube', 'Vimeo', 'Ted'].collect{ |src| [src, src.underscore ] } end def video_type=(t) self.meta['video_type'] = t end def video_type self.meta['video_type'] end def media_context? true end def to_js( attrs = {} ) super({ source: source, type: video_type, ext: file_ext }.reverse_merge!(attrs)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.2 | app/models/contexts/video.rb |