Compare commits
No commits in common. "5401ea984a07254b10aa2536dacb2b568617d638" and "b6bd539fed9ed3be71a7ca0910dccab4a42c7447" have entirely different histories.
5401ea984a
...
b6bd539fed
1 changed files with 2 additions and 0 deletions
|
@ -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) + "%")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue