Sha256: 44cb373252f82effdbd6511e267958b2b0d30528a620745350148181bdcdb7ef

Contents?: true

Size: 257 Bytes

Versions: 2

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

module Sunrise
  module Hooks
    module Adapters
      module ActiveRecord
        def where_like(column, value)
          where(["#{quoted_table_name}.#{column} LIKE ?", "#{value}%"])
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 lib/sunrise/hooks/adapters/active_record.rb
sunrise-cms-1.1.0 lib/sunrise/hooks/adapters/active_record.rb