Public Instance methods
before_validation()
Serialize deserialized values before saving
[show source]
# File lib/sequel/plugins/serialization.rb 197 def before_validation 198 serialize_deserialized_values 199 super 200 end
deserialized_values()
Hash
of deserialized values, used as a cache.
[show source]
# File lib/sequel/plugins/serialization.rb 184 def deserialized_values 185 @deserialized_values ||= {} 186 end
freeze()
Freeze the deserialized values
[show source]
# File lib/sequel/plugins/serialization.rb 189 def freeze 190 deserialized_values 191 super 192 deserialized_values.freeze 193 self 194 end