2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2017-06-26 04:04:36 +05:30
|
|
|
module Admin
|
2017-09-26 21:43:18 +05:30
|
|
|
class PhysicalTicketsController < Admin::BaseController
|
2017-06-26 04:04:36 +05:30
|
|
|
before_action :authenticate_user!
|
|
|
|
|
load_resource :conference, find_by: :short_title
|
|
|
|
|
load_and_authorize_resource
|
|
|
|
|
authorize_resource :conference_registrations, class: Registration
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
@physical_tickets = @conference.physical_tickets
|
|
|
|
|
@tickets_sold_distribution = @conference.tickets_sold_distribution
|
|
|
|
|
@tickets_turnover_distribution = @conference.tickets_turnover_distribution
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|