Sha256: 9849914f837ccf1b441104ff90011c35f27e8a9aa94ea8ce1a68f9e2e38d1a5f

Contents?: true

Size: 670 Bytes

Versions: 17

Compression:

Stored size: 670 Bytes

Contents

require 'mobility/backends/sequel/pg_hash'

module Mobility
  module Backends
=begin

Implements the {Mobility::Backends::Hstore} backend for Sequel models.

@see Mobility::Backends::Sequel::HashValued

=end
    class Sequel::Hstore < Sequel::PgHash
      require 'mobility/backends/sequel/hstore/query_methods'

      # @!group Backend Accessors
      # @!macro backend_reader
      # @!method read(locale, **options)

      # @!group Backend Accessors
      # @!macro backend_writer
      def write(locale, value, options = {})
        super(locale, value && value.to_s, options)
      end
      # @!endgroup

      setup_query_methods(QueryMethods)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mobility-0.5.1 lib/mobility/backends/sequel/hstore.rb
mobility-0.5.0 lib/mobility/backends/sequel/hstore.rb
mobility-0.4.3 lib/mobility/backends/sequel/hstore.rb
mobility-0.4.2 lib/mobility/backends/sequel/hstore.rb
mobility-0.4.1 lib/mobility/backends/sequel/hstore.rb
mobility-0.4.0 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.6 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.5 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.4 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.3 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.2 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.1 lib/mobility/backends/sequel/hstore.rb
mobility-0.3.0 lib/mobility/backends/sequel/hstore.rb
mobility-0.2.3 lib/mobility/backends/sequel/hstore.rb
mobility-0.2.2 lib/mobility/backends/sequel/hstore.rb
mobility-0.2.1 lib/mobility/backends/sequel/hstore.rb
mobility-0.2.0 lib/mobility/backends/sequel/hstore.rb