Sha256: 13afc247ea50c6b66f28ce6de9e383cce3b5b5dc17b566b231e446b1c7b33b81
Contents?: true
Size: 461 Bytes
Versions: 10
Compression:
Stored size: 461 Bytes
Contents
module Dorsale::Flyboy::TasksSummaryConcern extend ActiveSupport::Concern 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 end
Version data entries
10 entries across 10 versions & 1 rubygems