Sha256: 951d698e09b899837f0a860ca8250da83986720ffe1d76f315e7871004c561f4
Contents?: true
Size: 358 Bytes
Versions: 30
Compression:
Stored size: 358 Bytes
Contents
module Piggybak class PaymentsController < ApplicationController def refund payment = Payment.find(params[:id]) payment.order.recorded_changer = current_user.id if can?(:refund, payment) flash[:notice] = payment.refund end redirect_to rails_admin.edit_path('Piggybak::Order', payment.order.id) end end end
Version data entries
30 entries across 30 versions & 1 rubygems