Sha256: f2a08d649d80f4e11cce79daea2e88509cf9e212a3ddd97fe98de7ed1770325a
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 Bytes
Contents
# frozen_string_literal: true class Serega module SeregaPlugins module Batch # # Extensions (mini-plugins) that are enabled when :batch plugin used with other plugins # module PluginsExtensions # # Extension that is used when :if plugin is loaded # module If # # SeregaObjectSerializer additional/patched class methods # # @see Serega::SeregaObjectSerializer # module ObjectSerializerInstanceMethods123 private # Removes key added by `batch` plugin at the start of serialization to preserve attributes ordering def attach_final_value(value, point, container) container.delete(point.name) if super == SeregaPlugins::If::KEY_SKIPPED end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serega-0.21.0 | lib/serega/plugins/batch/lib/plugins_extensions/if.rb |
serega-0.20.1 | lib/serega/plugins/batch/lib/plugins_extensions/if.rb |