Class: Tasks::Projects::WeekInReviewController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/projects/week_in_review_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#dataObject



9
10
11
12
# File 'app/controllers/tasks/projects/week_in_review_controller.rb', line 9

def data
  @weeks_ago = params[:weeks_ago].to_i || 1
  render json: helpers.week_in_review(@weeks_ago)
end

#indexObject

GET



5
6
7
# File 'app/controllers/tasks/projects/week_in_review_controller.rb', line 5

def index
  @weeks_ago = (params[:weeks_ago] || 1).to_i
end