Sha256: 779e6fee8135ce82f3151aa55dd7a9d0a5efc1ec26f0156c3cd396462e8cffa1
Contents?: true
Size: 1.13 KB
Versions: 7
Compression:
Stored size: 1.13 KB
Contents
require 'mobility/backends/sequel/pg_hash' module Mobility module Backends =begin Implements the {Mobility::Backends::Jsonb} backend for Sequel models. @see Mobility::Backends::HashValued =end module Sequel class Jsonb < PgHash require 'mobility/backends/sequel/jsonb/query_methods' # @!group Backend Accessors # # @!method read(locale, **options) # @note Translation may be string, integer or boolean-valued since # value is stored on a JSON hash. # @param [Symbol] locale Locale to read # @param [Hash] options # @return [String,Integer,Boolean] Value of translation # # @!method write(locale, value, **options) # @note Translation may be string, integer or boolean-valued since # value is stored on a JSON hash. # @param [Symbol] locale Locale to write # @param [String,Integer,Boolean] value Value to write # @param [Hash] options # @return [String,Integer,Boolean] Updated value # @!endgroup setup_query_methods(QueryMethods) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems