module Sequel::Plugins::Serialization::InstanceMethods

  1. lib/sequel/plugins/serialization.rb

Methods

Public Instance

  1. before_validation
  2. deserialized_values
  3. freeze

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