Module: Mobility::Backends::Sequel::Serialized::SerializationModificationDetectionFix

Defined in:
lib/mobility/backends/sequel/serialized.rb

Overview

Note:

The original serialization_modification_detection plugin sets @original_deserialized_values to be @deserialized_values, which doesn’t work. Setting it to a new empty hash seems to work better.

Instance Method Summary collapse

Instance Method Details

#after_saveObject



97
98
99
100
# File 'lib/mobility/backends/sequel/serialized.rb', line 97

def after_save
  super
  @original_deserialized_values = {}
end