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!
This commit is contained in:
parent
1acb00e35a
commit
1d250f3148
1 changed files with 0 additions and 2 deletions
|
@ -31,8 +31,6 @@ class Item < ApplicationRecord
|
||||||
|
|
||||||
scope :sitemap, -> { order([:id]).limit(49999) }
|
scope :sitemap, -> { order([:id]).limit(49999) }
|
||||||
|
|
||||||
scope :with_closet_hangers, -> { joins(:closet_hangers) }
|
|
||||||
|
|
||||||
scope :name_includes, ->(value) {
|
scope :name_includes, ->(value) {
|
||||||
Item.where("name LIKE ?", "%" + sanitize_sql_like(value) + "%")
|
Item.where("name LIKE ?", "%" + sanitize_sql_like(value) + "%")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue