Class: Helpdesk::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/helpdesk/dashboard_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#default_url_options, #ensure_user

Instance Method Details

#indexObject



7
8
# File 'app/controllers/helpdesk/dashboard_controller.rb', line 7

def index
end

#my_ticketsObject



15
16
17
18
19
20
21
22
# File 'app/controllers/helpdesk/dashboard_controller.rb', line 15

def my_tickets
  @my_tickets = Helpdesk::Ticket
  .includes(:comments=>[:author])
  .includes(:requester)
  .includes(:assignee)
  .includes(:ticket_type)
  .where('requester_id = ?', helpdesk_user.id)
end

#showObject



11
12
# File 'app/controllers/helpdesk/dashboard_controller.rb', line 11

def show
end