Compare commits

...

2 commits

Author SHA1 Message Date
5401ea984a Merge remote-tracking branch 'origin/main' 2024-06-22 18:47:10 -07:00
1d250f3148 Remove unused Item.with_closet_hangers scope
Idk why we thought this made sense way back when? But it evidently has
no call sites now so. Goodbye!
2024-06-19 17:49:18 -07:00

View file

@ -32,8 +32,6 @@ class Item < ApplicationRecord
scope :sitemap, -> { order([:id]).limit(49999) }
scope :with_closet_hangers, -> { joins(:closet_hangers) }
scope :name_includes, ->(value) {
Item.where("name LIKE ?", "%" + sanitize_sql_like(value) + "%")
}