def category_hash(category, day_range)
      hash = {
        "id" => category.id,
        "tasks" => []
      }

      category.tasks[day_range].each do |task|
        hash["tasks"] << task.to_hash
      end

      hash
    end
def category_hash(category, day_range)
      hash = {
        "id" => category.id,
        "tasks" => []
      }

      category.tasks[day_range].each do |task|
        hash["tasks"] << task.to_hash
      end

      hash
    end
model hashes