Added Token field for physical_ticket

Added token field in physical_ticket model. This token will also be stored in the qr code and will uniqely identify the ticket.
This commit is contained in:
siddhantbajaj 2017-07-10 20:43:27 +05:30
parent 0528dbf8e8
commit 9e154a1dcd
8 changed files with 33 additions and 9 deletions

View file

@ -1,7 +1,7 @@
class PhysicalTicketController < ApplicationController
before_action :authenticate_user!
load_resource :conference, find_by: :short_title
load_and_authorize_resource
load_and_authorize_resource find_by: :token
authorize_resource :conference_registrations, class: Registration
def index