Sha256: 07092d7686a9b852f7e9c8ab89df9657b6c62fe59dd57155c480592c0486d3f0
Contents?: true
Size: 611 Bytes
Versions: 23
Compression:
Stored size: 611 Bytes
Contents
module Dorsale module Flyboy module TasksSummaryConcern extend ActiveSupport::Concern def setup_tasks_summary tasks = current_user_scope.tasks.where("(owner_id IS NULL and owner_type IS NULL) OR (owner_id = ? and owner_type = ?)", current_user.id, current_user.class) @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 end end
Version data entries
23 entries across 23 versions & 1 rubygems