Sha256: 2d59fda453766f97891ea90b817957f200abf81efd38453c44ae4563ba6c1b42
Contents?: true
Size: 209 Bytes
Versions: 160
Compression:
Stored size: 209 Bytes
Contents
module WithCaseInsensitiveSearch extend ActiveSupport::Concern included do scope :find_by_ignore_case!, lambda { |attribute, value| where("lower(#{attribute}) = ?", value.downcase).first! } end end
Version data entries
160 entries across 160 versions & 2 rubygems