Compare commits

..

No commits in common. "5401ea984a07254b10aa2536dacb2b568617d638" and "b6bd539fed9ed3be71a7ca0910dccab4a42c7447" have entirely different histories.

View file

@ -32,6 +32,8 @@ 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) + "%")
}