Sha256: 115eaf59d2645fb903f0482a0fb488beff47ada646f4136b9a4c31eaa6c3a82d
Contents?: true
Size: 276 Bytes
Versions: 7
Compression:
Stored size: 276 Bytes
Contents
# require "eitil_core/application_record/where_like" module EitilCore module ApplicationRecord module WhereLike def where_like(_hash) column, like = _hash.first where("LOWER(#{column}) LIKE ?", "%#{like.downcase}%") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems