```ruby
class ChapterSerializer < ActiveModel::Serializer
  attributes :id, :created_at, :completed_at, :title, :description, :goal
  has_many :entries
end
```

Complete reducing page load time by updating JSON serializers
user
```ruby
class ChapterSerializer < ActiveModel::Serializer
  attributes :id, :created_at, :completed_at, :title, :description, :goal, :total_calories, :total_carbs, :total_fats, :total_protein
  has_many :entries
end
```
assistant