Sha256: f79b59087f97d5461d8f43334f9cfbc1fd0deefaf20ba9a15d26b41c1c7e20f9
Contents?: true
Size: 505 Bytes
Versions: 22
Compression:
Stored size: 505 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %> < <%= parent_class_name.classify %> <% attributes.each do |attribute| -%> # property <%= attribute.name %>, type: :<%= attribute.type %> <% end -%> <% attributes.select(&:reference?).each do |attribute| -%> belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %><%= ', required: true' if attribute.required? %> <% end -%> <% if attributes.any?(&:password_digest?) -%> has_secure_password <% end -%> end <% end -%>
Version data entries
22 entries across 22 versions & 1 rubygems