Sha256: a86c8a42cfd30d6d6b6bd5ee1d76afd09532422b7c2dc0e8ec871ae2deda71cd
Contents?: true
Size: 194 Bytes
Versions: 20
Compression:
Stored size: 194 Bytes
Contents
module ModelHelpers def deep_unwrap(value) if value.is_a?(Model) value = value.to_h elsif value.is_a?(ArrayModel) value = value.to_a end return value end end
Version data entries
20 entries across 20 versions & 1 rubygems