From afc9c0da7e2411503ae63eaafcd408ac85c1ce5d Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Aug 2023 17:28:22 -0700 Subject: [PATCH] Fix stray bugs on minor codepaths I ran `rails zeitwerk:check`, which eager-loads the app, and it found two problems: `closet_group.rb` doesn't define `ClosetGroup` (cuz it's empty), and I left in a reference to a cache sweeper observer oops. Goodbye! --- app/controllers/pets_controller.rb | 2 -- app/models/closet_group.rb | 0 2 files changed, 2 deletions(-) delete mode 100644 app/models/closet_group.rb diff --git a/app/controllers/pets_controller.rb b/app/controllers/pets_controller.rb index f2de7990..eb552793 100644 --- a/app/controllers/pets_controller.rb +++ b/app/controllers/pets_controller.rb @@ -5,8 +5,6 @@ class PetsController < ApplicationController protect_from_forgery except: :submit before_action :local_only, only: :submit - - cache_sweeper :user_sweeper def load if params[:name] == '!' diff --git a/app/models/closet_group.rb b/app/models/closet_group.rb deleted file mode 100644 index e69de29b..00000000