Sha256: 6f091aff427766049fe9664a69905ca5d468718eeffeefd6a3d3f5aa206f5322
Contents?: true
Size: 393 Bytes
Versions: 20
Compression:
Stored size: 393 Bytes
Contents
# require "eitil_core/application_record/where_like" # require "eitil_core/railtie" to run the dynamic dispatch as an init hook during boot require "eitil_core/railtie" 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
20 entries across 20 versions & 1 rubygems