module Ddr::Models::HasThumbnail
Public Instance Methods
copy_thumbnail_from(other)
click to toggle source
# File lib/ddr/models/has_thumbnail.rb, line 13 def copy_thumbnail_from(other) if other && other.has_thumbnail? self.thumbnail.content = other.thumbnail.content self.thumbnail.mime_type = other.thumbnail.mime_type if thumbnail_changed? end thumbnail_changed? end
thumbnail_changed?()
click to toggle source
# File lib/ddr/models/has_thumbnail.rb, line 9 def thumbnail_changed? thumbnail.content_changed? end