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

Version Path
dorsale-3.8.1 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.8.0 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.8 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.7 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.6 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.5 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.4 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.2 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.1 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb
dorsale-3.7.0 app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb