Sha256: 73bdf49440104f21f208a244d5e1d1a2bf7925e102c04cba35d96f376ad81ebf
Contents?: true
Size: 1.11 KB
Versions: 15
Compression:
Stored size: 1.11 KB
Contents
require 'mobility/backends/active_record/pg_hash' module Mobility module Backends =begin Implements the {Mobility::Backends::Jsonb} backend for ActiveRecord models. @see Mobility::Backends::ActiveRecord::HashValued =end class ActiveRecord::Jsonb < ActiveRecord::PgHash require 'mobility/backends/active_record/jsonb/query_methods' # @!group Backend Accessors # # @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 read(locale, **options) # @!group Backend Accessors # @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 # @!method write(locale, value, **options) setup_query_methods(QueryMethods) end end end
Version data entries
15 entries across 15 versions & 1 rubygems