Sha256: 2e48e15436c21004a0cbc2b5fe6c38128bc57e8c80310ddf20a88f73ac66b5e7
Contents?: true
Size: 313 Bytes
Versions: 6
Compression:
Stored size: 313 Bytes
Contents
require 'virtus' require 'vedeu/support/persistence' module Vedeu class InterfaceCollection < Virtus::Attribute def coerce(values) return [] if values.nil? || values.empty? [values].flatten.map do |value| Persistence.update(value.fetch(:name, nil), value) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems