Sha256: 4c6d11002bf21701363fe82b581693ba0a4fd0af7823e4c889b84ac1ee814f44
Contents?: true
Size: 460 Bytes
Versions: 36
Compression:
Stored size: 460 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
36 entries across 36 versions & 1 rubygems