Merge pull request #1576 from siddhantbajaj/qr-code

Add token field in ticket
This commit is contained in:
Ana María Martínez Gómez 2017-07-25 11:46:04 +02:00 committed by GitHub
commit e2bad46d00
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