Sha256: caca576c7edcedec9f15513e6b3977daa5d363308145e683f9a5d5cf3ba480b9
Contents?: true
Size: 380 Bytes
Versions: 142
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module Document module AttributeInitializer class Enum < Base def call yield name, type, options configure_enums end private def configure_enums enums = options[:enums] || Document::Enum.default_enums(klass.model_name, name) klass.enumerize name, in: enums end end end end
Version data entries
142 entries across 142 versions & 1 rubygems