Sha256: 36b41339907156f35cdfc6ad0ee554f10c78c0b81c5aa538c806bc499c77feb9
Contents?: true
Size: 390 Bytes
Versions: 5
Compression:
Stored size: 390 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 'paperclip' end end
Version data entries
5 entries across 5 versions & 1 rubygems