Sha256: 468640e5d5094b9cf01cf26822799327150fddc720fa9c8d7b808808c5d297be

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module Spree
  PaymentMethod.class_eval do
    attr_accessible :icon

    has_attached_file :icon,
      styles: { mini: '32x32>', normal: '128x128>' },
      default_style: :mini,
      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 app/models/spree/payment_method_decorator.rb