Module: SpreeCmCommissioner::Billing::QrcodesHelper

Defined in:
app/helpers/spree_cm_commissioner/billing/qrcodes_helper.rb

Instance Method Summary collapse

Instance Method Details

#payment_qrcode_image(qrcode) ⇒ Object



4
5
6
7
8
# File 'app/helpers/spree_cm_commissioner/billing/qrcodes_helper.rb', line 4

def payment_qrcode_image(qrcode)
  return if qrcode.blank?

  image_tag main_app.rails_blob_url(qrcode.attachment), alt: 'qrcode', style: 'width: 150px;'
end