Sha256: a46422781cf4c799898ac714881d387995432890a545027e0a3be0aac3faaa93
Contents?: true
Size: 467 Bytes
Versions: 99
Compression:
Stored size: 467 Bytes
Contents
require "edition" require "attachable" class VideoEdition < Edition include Attachable field :video_url, type: String field :video_summary, type: String field :body, type: String GOVSPEAK_FIELDS = Edition::GOVSPEAK_FIELDS + [:body] @fields_to_clone = [:video_url, :video_summary, :body] attaches :caption_file def has_video? video_url.present? end def whole_body [video_summary, video_url, body].join("\n\n") end end
Version data entries
99 entries across 99 versions & 1 rubygems