Oops, remove stray viewer_data
reader from Pet
This is left over from a previous plan I had, before moving `fetch_viewer_data` to a class method.
This commit is contained in:
parent
b24ed7facb
commit
4888a9dcbe
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Pet < ApplicationRecord
|
||||||
|
|
||||||
belongs_to :pet_type
|
belongs_to :pet_type
|
||||||
|
|
||||||
attr_reader :items, :pet_state, :viewer_data
|
attr_reader :items, :pet_state
|
||||||
|
|
||||||
scope :with_pet_type_color_ids, ->(color_ids) {
|
scope :with_pet_type_color_ids, ->(color_ids) {
|
||||||
joins(:pet_type).where(PetType.arel_table[:id].in(color_ids))
|
joins(:pet_type).where(PetType.arel_table[:id].in(color_ids))
|
||||||
|
|
Loading…
Reference in a new issue