Class: CASino::ServiceTicketsController

Inherits:
ApplicationController show all
Includes:
ControllerConcern::TicketValidator
Defined in:
app/controllers/casino/service_tickets_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#cookies

Instance Method Details

#service_validateObject


14
15
16
# File 'app/controllers/casino/service_tickets_controller.rb', line 14

def service_validate
  validate_ticket(@service_ticket)
end

#validateObject


7
8
9
10
11
12
# File 'app/controllers/casino/service_tickets_controller.rb', line 7

def validate
  if ticket_valid_for_service?(@service_ticket, params[:service], renew: params[:renew])
    @username = @service_ticket.ticket_granting_ticket.user.username
  end
  render :validate, formats: [:text]
end