Sha256: a37f41dbf65a1c892b65d15ed90ca6f8a4d893e30f5aacee8dd2de5997b94f0c
Contents?: true
Size: 503 Bytes
Versions: 13
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module Spree::Taxon::ActiveStorageAttachment extend ActiveSupport::Concern include Spree::ActiveStorageAdapter included do has_attachment :icon, styles: { mini: '32x32>', normal: '128x128>' }, default_style: :mini validate :icon_is_an_image end def attachment_partial_name Spree::Deprecation.warn("calling #attachment_partial_name on Spree::Taxon is deprecated without replacement.") 'paperclip' end end
Version data entries
13 entries across 13 versions & 1 rubygems