Sha256: e4a87763802e3205671e6b9e2ac8ecce5d5bc836ad75ce7f23cc88145c18b3db
Contents?: true
Size: 481 Bytes
Versions: 28
Compression:
Stored size: 481 Bytes
Contents
module Workarea module Configuration class Admin include ApplicationDocument include ::Mongoid::Encrypted delegate :definition, to: :class def self.instance first || create end def self.definition Workarea.config.admin_definition end definition.fields.each do |f| field f.key, type: f.type_class, default: f.default, encrypted: f.encrypted? end end end end
Version data entries
28 entries across 28 versions & 1 rubygems