Sha256: 5d147eecd5162512b94aedcbc4c75ff58e354077d7c72c65acfc37e4f8b53846

Contents?: true

Size: 759 Bytes

Versions: 30

Compression:

Stored size: 759 Bytes

Contents

module Mobility
  module Backends

=begin

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).

@see Mobility::Backends::ActiveRecord::Container
@see Mobility::Backends::Sequel::Container
@see https://www.postgresql.org/docs/current/static/datatype-json.html PostgreSQL Documentation for JSON Types

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

      module ClassMethods
        def valid_keys
          [:column_name]
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mobility-1.3.1 lib/mobility/backends/container.rb
mobility-1.3.0 lib/mobility/backends/container.rb
mobility-1.3.0.rc3 lib/mobility/backends/container.rb
mobility-1.3.0.rc2 lib/mobility/backends/container.rb
mobility-1.3.0.rc1 lib/mobility/backends/container.rb
mobility-1.2.9 lib/mobility/backends/container.rb
mobility-1.2.8 lib/mobility/backends/container.rb
mobility-1.2.7 lib/mobility/backends/container.rb
mobility-1.2.6 lib/mobility/backends/container.rb
mobility-1.2.5 lib/mobility/backends/container.rb
mobility-1.2.4 lib/mobility/backends/container.rb
mobility-1.2.3 lib/mobility/backends/container.rb
mobility-1.2.2 lib/mobility/backends/container.rb
mobility-1.2.1 lib/mobility/backends/container.rb
mobility-1.2.0 lib/mobility/backends/container.rb
mobility-1.1.3 lib/mobility/backends/container.rb
mobility-1.1.2 lib/mobility/backends/container.rb
mobility-1.1.1 lib/mobility/backends/container.rb
mobility-1.1.0 lib/mobility/backends/container.rb
mobility-1.0.7 lib/mobility/backends/container.rb