Class: Workflow::UserController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/workflow/user_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
# File 'app/controllers/workflow/user_controller.rb', line 2

def index
  @assigned_tasks = Task.where(user_id: current_user.id, state: 'assigned')
  @completed_tasks = Task.complete.where(user_id: current_user.id)
  @sidenav_links_count = 1
end