Sha256: c6a9a0da1486616977072574b51681900d0eb5182da879f9cc3788947199c9b6
Contents?: true
Size: 440 Bytes
Versions: 19
Compression:
Stored size: 440 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 = [: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
19 entries across 19 versions & 1 rubygems