Sha256: cefe9ca94e1253e9440e72311ed8b06471530bfa5b75c9e36a4adcfd8edc83ad
Contents?: true
Size: 708 Bytes
Versions: 17
Compression:
Stored size: 708 Bytes
Contents
require 'mobility/backends/active_record/pg_hash' module Mobility module Backends =begin Implements the {Mobility::Backends::Hstore} backend for ActiveRecord models. @see Mobility::Backends::ActiveRecord::HashValued =end class ActiveRecord::Hstore < ActiveRecord::PgHash require 'mobility/backends/active_record/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