diff --git a/app/models/pet.rb b/app/models/pet.rb index 8973a11a..388e05c4 100644 --- a/app/models/pet.rb +++ b/app/models/pet.rb @@ -11,7 +11,7 @@ class Pet < ApplicationRecord belongs_to :pet_type - attr_reader :items, :pet_state, :viewer_data + attr_reader :items, :pet_state scope :with_pet_type_color_ids, ->(color_ids) { joins(:pet_type).where(PetType.arel_table[:id].in(color_ids))