Module: Dorsale::Flyboy::TasksSummaryConcern
- Extended by:
- ActiveSupport::Concern
- Included in:
- TasksController
- Defined in:
- app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
Instance Method Summary collapse
Instance Method Details
#setup_tasks_summary ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb', line 4 def setup_tasks_summary tasks = policy_scope(::Dorsale::Flyboy::Task).where(owner: [current_user, nil]) @delayed_tasks = tasks.delayed @today_tasks = tasks.today @tomorrow_tasks = tasks.tomorrow @this_week_tasks = tasks.this_week @next_week_tasks = tasks.next_week @next_next_week_tasks = tasks.next_next_week end |