Class: Tasks::Projects::WeekInReviewController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::Projects::WeekInReviewController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/projects/week_in_review_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#data ⇒ Object
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 |
#index ⇒ Object
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 |