Sha256: 16464f38da40322dc66a9c23a14cf880d7d5c44d10a61d2fc0f47b8c51f1a8ef
Contents?: true
Size: 364 Bytes
Versions: 19
Compression:
Stored size: 364 Bytes
Contents
module Spree class StoreMailerLogo < Asset if Spree.public_storage_service_name has_one_attached :attachment, service: Spree.public_storage_service_name else has_one_attached :attachment end VALID_CONTENT_TYPES = ['image/png', 'image/jpg', 'image/jpeg'].freeze validates :attachment, content_type: VALID_CONTENT_TYPES end end
Version data entries
19 entries across 19 versions & 1 rubygems