Sha256: 83c74b31edae351230f584ec4fa95068f116c12e00792eedb943d685b60b4a16
Contents?: true
Size: 392 Bytes
Versions: 13
Compression:
Stored size: 392 Bytes
Contents
class <%= class_name %>Page < Fae::StaticPage @slug = '<%= file_name %>' # required to set the has_one associations, Fae::StaticPage will build these associations dynamically def self.fae_fields { <% @attributes.each_with_index do |(attr, type), index| -%> <%= attr %>: { type: <%= type %> }<%= index + 1 != @attributes.length ? ",\n" : "\n" -%> <% end -%> } end end
Version data entries
13 entries across 13 versions & 2 rubygems