Sha256: 9d10da395ed378a2b020fe36c9f6dbbde48eaf104e01887706c90979caac3c80
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 Bytes
Contents
# frozen_string_literal: true module RailsMiniProfiler class DatabaseAdapter class << self def cast_to_text(column) if ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' # Cast json field to text to have access to the LIKE operator "#{column}::text" else column end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems