Module: Mobility::Backends::Container

Included in:
ActiveRecord::Container, Sequel::Container
Defined in:
lib/mobility/backends/container.rb

Overview

Stores translations for multiple attributes on a single shared Postgres jsonb column (called a “container”).

Backend Options

column_name

Name of the column for the translations container (where translations are stored).

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(backend_class) ⇒ Object



22
23
24
25
# File 'lib/mobility/backends/container.rb', line 22

def self.included(backend_class)
  backend_class.extend ClassMethods
  backend_class.option_reader :column_name
end