Sha256: 1b350b6f4d9fcbcc4ac40f1543adce9ee6a6ad8cc121cbf373800eafd37adc1f
Contents?: true
Size: 525 Bytes
Versions: 10
Compression:
Stored size: 525 Bytes
Contents
module Ddr module Models module HasThumbnail extend ActiveSupport::Concern included do contains Ddr::Datastreams::THUMBNAIL 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
10 entries across 10 versions & 1 rubygems