Sha256: 7077358b2b31d1b506c2e73a32066058dc16a3d4df074cd63377686f1f1c4dbb

Contents?: true

Size: 242 Bytes

Versions: 2

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

module Pragma
  module Operation
    module Filter
      class Like < Base
        def apply(relation:, value:)
          relation.where("#{column} LIKE ?", "%#{value}%")
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pragma-2.1.1 lib/pragma/operation/filter/like.rb
pragma-2.1.0 lib/pragma/operation/filter/like.rb