Sha256: ac7fd34fded99dfbbe995eb630cedd76d7ba5df1354b350d79d36d7f6829f2ca
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 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 module ActiveRecord class Hstore < 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mobility-0.6.0 | lib/mobility/backends/active_record/hstore.rb |