I'm having trouble using senitize_sql_like , along with ilike .
When I use it, the query is not returning the expected value, following implementation used:
scope :brand_name_by_content, -> (brand, sna)
{sna.top_contents.where(sanitize_sql_like("content ilike '%#
{Brand.find(brand[0]).name}%'"))}