Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created April 18, 2012 04:34
Show Gist options
  • Save fivetwentysix/2411131 to your computer and use it in GitHub Desktop.
Save fivetwentysix/2411131 to your computer and use it in GitHub Desktop.
def approve
@payment.approve(current_user)
flash[:success] = "The payment has been approved."
if @payment.payment_requests.any?
redirect_to accounting_payment_requests_path
else
redirect_to payments_path(stage: "requisitions")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment