Module: Sequel::Plugins::SerializationModificationDetection::InstanceMethods

Defined in:
lib/sequel/plugins/serialization_modification_detection.rb

Instance Method Summary collapse

Instance Method Details

#changed_columnsObject

Detect which serialized columns have changed.



29
30
31
32
33
# File 'lib/sequel/plugins/serialization_modification_detection.rb', line 29

def changed_columns
  cc = super
  deserialized_values.each{|c, v| cc << c if !cc.include?(c) && original_deserialized_value(c) != v} 
  cc
end