Sha256: 8c483498d4502de771659c1211e6230d58fdd91f31581616a7851e7126ffaf1f
Contents?: true
Size: 854 Bytes
Versions: 14
Compression:
Stored size: 854 Bytes
Contents
# encoding: utf-8 module Mongoid module Association 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, _association ] end # Takes the provided data and sets it back on the proxy. # # @example Load the proxy. # Marshal.load(proxy) # # @param [ Array<Object> ] data The data to set on the proxy. # # @return [ Array<Object> ] The loaded data. # # @since 3.0.15 def marshal_load(data) @_base, @_target, @_association = data extend_proxy(_association.extension) if _association.extension end end end end
Version data entries
14 entries across 14 versions & 1 rubygems