Sha256: 9e04a7ab82b56a65cfd534de53785b416d5521df203df593bfc11895f7a2b4cf
Contents?: true
Size: 272 Bytes
Versions: 2
Compression:
Stored size: 272 Bytes
Contents
module Scrivito module GeneratorHelper def self.attribute_definition(arg) name, type = arg.to_s.split(":") if %w(enum multienum).include?(type) "attribute :#{name}, :#{type}, values: []" else "attribute :#{name}, :#{type}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrivito_sdk-1.18.0 | app/cms/scrivito/generator_helper.rb |
scrivito_sdk-1.18.0.rc1 | app/cms/scrivito/generator_helper.rb |