Flash uniformity done in a bunch of files

This commit is contained in:
Aditya Chatterjee 2016-03-01 18:58:41 +05:30
parent 1e9f4b514c
commit 598606547e
9 changed files with 37 additions and 39 deletions

View file

@ -2,6 +2,8 @@ class TicketPurchasesController < ApplicationController
before_filter :authenticate_user!
load_resource :conference, find_by: :short_title
authorize_resource :conference_registrations, class: Registration
add_flash_types :error
add_flash_types :alert
def create
message = TicketPurchase.purchase(@conference, current_user, params[:tickets][0])