Sha256: 7ed3e6b0ea32f5b46424d5496a31dd27bea698d778efdd8392012a91e3c60f07
Contents?: true
Size: 693 Bytes
Versions: 11
Compression:
Stored size: 693 Bytes
Contents
# encoding: utf-8 module Mongoid module Relations module Marshalable # Provides the data needed to Marshal.dump a relation proxy. # # @example Dump the proxy. # Marshal.dump(proxy) # # @return [ Array<Object> ] The dumped data. # # @since 3.0.15 def marshal_dump [ base, target, metadata ] end # Takes the provided data and sets it back on the proxy. # # @example Load the proxy. # Marshal.load(proxy) # # @return [ Array<Object> ] The loaded data. # # @since 3.0.15 def marshal_load(data) @base, @target, @metadata = data end end end end
Version data entries
11 entries across 11 versions & 2 rubygems