Class: CASino::ProxyTicketsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#cookies

Instance Method Details

#createObject


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

def create
  proxy_ticket = @proxy_granting_ticket.proxy_tickets.create!(service: params[:targetService])
  build_proxy_response(true, proxy_ticket: proxy_ticket)
end

#proxy_validateObject


10
11
12
# File 'app/controllers/casino/proxy_tickets_controller.rb', line 10

def proxy_validate
  validate_ticket(@ticket)
end