Class: PlanMyStuff::ProjectsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/plan_my_stuff/projects_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /projects



6
7
8
# File 'app/controllers/plan_my_stuff/projects_controller.rb', line 6

def index
  @projects = PMS::Project.list.reject(&:closed)
end

#showObject

GET /projects/:id



11
12
13
14
15
# File 'app/controllers/plan_my_stuff/projects_controller.rb', line 11

def show
  @project = PMS::Project.find(params[:id].to_i)
  @statuses = @project.statuses.pluck(:name)
  @items_by_status = @project.items.group_by(&:status)
end