mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
improve flash error collection
improve views
This commit is contained in:
parent
6bd2e5e335
commit
261d7dd0de
4 changed files with 15 additions and 19 deletions
|
|
@ -4,7 +4,7 @@ class TicketPurchasesController < ApplicationController
|
|||
authorize_resource :conference_registrations, class: Registration
|
||||
|
||||
def create
|
||||
TicketPurchase.by_conference(@conference).unpaid.by_user(current_user).destroy_all
|
||||
current_user.ticket_purchases.by_conference(@conference).unpaid.destroy_all
|
||||
message = TicketPurchase.purchase(@conference, current_user, params[:tickets][0])
|
||||
if message.blank?
|
||||
if current_user.ticket_purchases.by_conference(@conference).unpaid.any?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue