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


93
94
95
96
# File 'lib/mobility/backends/sequel/serialized.rb', line 93

def after_save
  super
  @original_deserialized_values = {}
end