Class: Spree::Billing::PaymentQrcodesController
- Inherits:
-
BaseController
- Object
- Admin::ResourceController
- BaseController
- Spree::Billing::PaymentQrcodesController
- Defined in:
- app/controllers/spree/billing/payment_qrcodes_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#collection_url, #current_vendor, #default_url_options, #edit_object_url, #handle_unauthorized_vendor, #page, #per_page, #required_vendor_user!, #set_locale, #switch_vendor, #vendors
Methods included from SpreeCmCommissioner::Billing::RoleAuthorization
#auth_action, #auth_entry, #auth_user, #authorize!, #authorize?, #authorize_admin, #authorize_role!, #redirect_unauthorized_access
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/spree/billing/payment_qrcodes_controller.rb', line 4 def destroy if @current_vendor.payment_qrcode.destroy flash[:success] = Spree.t('notice_messages.qrcode_removed') else flash[:error] = Spree.t('errors.messages.cannot_remove_qrcode') end redirect_to edit_billing_vendor_url(@current_vendor) end |