Sha256: 060783cc77c358736c7cec6a735f92d93fa41715bbb8185d746de96cd80e6d8c

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

module Spree
  PaymentMethod.class_eval do
    attr_accessible :icon

    has_attached_file :icon,
      styles: { mini: '32x32>', normal: '128x128>' },
      default_style: :mini,
      url: '/spree/payment_methods/:id/:style/:basename.:extension',
      path: ':rails_root/public/spree/payment_methods/:id/:style/:basename.:extension',
      convert_options: { all: '-strip -auto-orient -colorspace sRGB' }

    include Spree::Core::S3Support
    supports_s3 :icon
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_payment_image-2.0.1 app/models/spree/payment_method_decorator.rb