Module: Boolean

Defined in:
lib/sequent/core/ext/ext.rb

Class Method Summary collapse

Class Method Details

.deserialize_from_json(value) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/sequent/core/ext/ext.rb', line 36

def self.deserialize_from_json(value)
  if value.nil?
    nil
  else
    (value.present? ? value : false)
  end
end