Sha256: 2516ffb822288e36556f2731bf1a285af5a907cfeef60b4fa844d15bb6bab172
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
require 'mobility/backends/active_record/pg_query_methods' require "mobility/backends/active_record/query_methods" module Mobility module Backends class ActiveRecord::Jsonb::QueryMethods < ActiveRecord::QueryMethods include ActiveRecord::PgQueryMethods private def matches(key, value, locale) build_infix(:'->', arel_table[key], quote(locale)).eq(quote(value.to_json)) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems