Sha256: 83c9518faa9611d062b20e2427361aaaf91a662f83d6b4a082c1322a979a5095
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
module DataMapper class Property class Binary < String if RUBY_VERSION >= '1.9' def load(value) super.dup.force_encoding('BINARY') unless value.nil? end def dump(value) value&.dup&.force_encoding('BINARY') rescue value end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | lib/dm-core/property/binary.rb |
sbf-dm-core-1.3.0.beta | lib/dm-core/property/binary.rb |