Sha256: 1a472c14babc17c55bf23beefc62398af7987c2ae3d92d67d66b1a4a5492d972
Contents?: true
Size: 277 Bytes
Versions: 17
Compression:
Stored size: 277 Bytes
Contents
module Agilibox::DefaultValuesConcern extend ActiveSupport::Concern def assign_default_values end def assign_default(attribute, value) send("#{attribute}=", value) if send(attribute).nil? end included do after_initialize :assign_default_values end end
Version data entries
17 entries across 17 versions & 1 rubygems