Sha256: 88d5da7cf394096416f1c06495137923045ea7c17259b2590e3ad7c892019c45
Contents?: true
Size: 303 Bytes
Versions: 20
Compression:
Stored size: 303 Bytes
Contents
module Piggybak class PaymentsController < ApplicationController def refund payment = Payment.find(params[: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
20 entries across 20 versions & 1 rubygems