diff --git a/app/models/closet_hanger.rb b/app/models/closet_hanger.rb index 5a759fc8..f5d5ef23 100644 --- a/app/models/closet_hanger.rb +++ b/app/models/closet_hanger.rb @@ -1,6 +1,6 @@ class ClosetHanger < ApplicationRecord belongs_to :item - belongs_to :list, :class_name => 'ClosetList' + belongs_to :list, class_name: 'ClosetList', optional: true belongs_to :user delegate :name, to: :item, prefix: true