Class: Mobility::Backends::Sequel::Jsonb
- Defined in:
- lib/mobility/backends/sequel/jsonb.rb
Overview
Implements the Jsonb backend for Sequel models.
Defined Under Namespace
Classes: QueryMethods
Backend Accessors collapse
-
#read(locale, **options) ⇒ String, ...
Value of translation.
-
#write(locale, value, **options) ⇒ String, ...
Updated value.
Methods inherited from PgHash
Methods included from HashValued
Methods included from Mobility::Backends::Sequel
included, #setup_query_methods
Instance Method Details
#read(locale, **options) ⇒ String, ...
Note:
Translation may be string, integer or boolean-valued since value is stored on a JSON hash.
Returns Value of translation.
|
# File 'lib/mobility/backends/sequel/jsonb.rb', line 15
|
#write(locale, value, **options) ⇒ String, ...
Note:
Translation may be string, integer or boolean-valued since value is stored on a JSON hash.
Returns Updated value.
33 |
# File 'lib/mobility/backends/sequel/jsonb.rb', line 33 setup_query_methods(QueryMethods) |