Sha256: fd54298188bb9ec6e4c4d71715047bb4fedf4e5a32f62c41e571c0bccde84ee3
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
Contents
require 'mobility/backends/sequel/pg_hash' module Mobility module Backends =begin Implements the {Mobility::Backends::Json} backend for Sequel models. @see Mobility::Backends::HashValued =end module Sequel class Json < PgHash require 'mobility/backends/sequel/json/query_methods' # @!group Backend Accessors # # @!method read(locale, options = {}) # @note Translation may be any json type, but querying will only work on # string-typed values. # @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 any json type, but querying will only work # on string-typed values. # @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