From 94d15f005d4675db0a2fed469d724cd592af676f Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 11 Nov 2023 15:42:08 -0800 Subject: [PATCH] Delete a couple unused accessors At least, I think they are! --- app/models/closet_visibility.rb | 1 - app/models/pet.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/models/closet_visibility.rb b/app/models/closet_visibility.rb index 41db3e22..13a4f1df 100644 --- a/app/models/closet_visibility.rb +++ b/app/models/closet_visibility.rb @@ -1,7 +1,6 @@ module ClosetVisibility class Level attr_accessor :id, :name - attr_writer :description def initialize(data) data.each do |key, value| diff --git a/app/models/pet.rb b/app/models/pet.rb index 4b97b008..5cba003b 100644 --- a/app/models/pet.rb +++ b/app/models/pet.rb @@ -12,7 +12,6 @@ class Pet < ApplicationRecord belongs_to :pet_type attr_reader :items, :pet_state - attr_accessor :contributor scope :with_pet_type_color_ids, ->(color_ids) { joins(:pet_type).where(PetType.arel_table[:id].in(color_ids))