Sha256: b2ececd6cdd318d49f794f190a90c71b314e9cacefc51ac95a940dc8628f0a79
Contents?: true
Size: 701 Bytes
Versions: 87
Compression:
Stored size: 701 Bytes
Contents
module Ddr module Models module HasThumbnail extend ActiveSupport::Concern included do has_file_datastream name: Ddr::Datastreams::THUMBNAIL, versionable: true, label: "Thumbnail for this object", control_group: 'M' end def thumbnail_changed? thumbnail.content_changed? end def copy_thumbnail_from(other) if other && other.has_thumbnail? self.thumbnail.content = other.thumbnail.content self.thumbnail.mimeType = other.thumbnail.mimeType if thumbnail_changed? end thumbnail_changed? end end end end
Version data entries
87 entries across 87 versions & 1 rubygems