Make people pay their debts
This commit is contained in:
parent
c6303101a9
commit
8e05b48ca0
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def quickpay
|
||||
authorize! :create, @user.orders.build
|
||||
order = @user.orders.build
|
||||
order.order_items.build(count: 1, product: @user.dagschotel)
|
||||
if order.save
|
||||
|
|
Loading…
Reference in a new issue