Sha256: 88c9f70e335d86b2b7f022014dd231180fc9350a315706c4e3a2ebf2ea8b90cf
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true require 'mobility/backends/sequel/pg_query_methods' require "mobility/backends/sequel/query_methods" Sequel.extension :pg_hstore, :pg_hstore_ops module Mobility module Backends class Sequel::Hstore::QueryMethods < Sequel::QueryMethods include Sequel::PgQueryMethods private def matches(key, value, locale) build_op(key)[locale] =~ value.to_s end def has_locale(key, locale) build_op(key).has_key?(locale) end def build_op(key) ::Sequel.hstore_op(key) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mobility-0.5.1 | lib/mobility/backends/sequel/hstore/query_methods.rb |
mobility-0.5.0 | lib/mobility/backends/sequel/hstore/query_methods.rb |