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
191 def before_validation
192   serialize_deserialized_values
193   super
194 end
deserialized_values()

Hash of deserialized values, used as a cache.

[show source]
    # File lib/sequel/plugins/serialization.rb
178 def deserialized_values
179   @deserialized_values ||= {}
180 end
freeze()

Freeze the deserialized values

[show source]
    # File lib/sequel/plugins/serialization.rb
183 def freeze
184   deserialized_values
185   super
186   deserialized_values.freeze
187   self
188 end