Sha256: 9555147cac1f6e9fb81022314b9bc6c60adc334ef236a38fb1b5d0b1e86f63ff

Contents?: true

Size: 600 Bytes

Versions: 11

Compression:

Stored size: 600 Bytes

Contents

module Spree
  class TaxonIcon < Asset
    has_attached_file :attachment,
                      styles: { mini: '32x32>', normal: '128x128>' },
                      default_style: :mini,
                      url: '/spree/taxons/:viewable_id/:style/:basename.:extension',
                      path: ':rails_root/public/spree/taxons/:viewable_id/:style/:basename.:extension',
                      default_url: '/assets/default_taxon.png'

    validates_attachment :attachment,
                         content_type: { content_type: ['image/jpg', 'image/jpeg', 'image/png', 'image/gif'] }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-3.4.6 app/models/spree/taxon_icon.rb
spree_core-3.5.0 app/models/spree/taxon_icon.rb
spree_core-3.5.0.rc2 app/models/spree/taxon_icon.rb
spree_core-3.5.0.rc1 app/models/spree/taxon_icon.rb
spree_core-3.4.5 app/models/spree/taxon_icon.rb
spree_core-3.4.4 app/models/spree/taxon_icon.rb
spree_core-3.4.3 app/models/spree/taxon_icon.rb
spree_core-3.4.2 app/models/spree/taxon_icon.rb
spree_core-3.4.1 app/models/spree/taxon_icon.rb
spree_core-3.4.0 app/models/spree/taxon_icon.rb
spree_core-3.4.0.rc2 app/models/spree/taxon_icon.rb