Sha256: dc29dde7a88cc61b051ea32180a48f007d62765814544bf3c5ba4829e9bc67c4

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

module Spree
  PaymentMethod.class_eval do
    attr_accessible :icon

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