Sha256: e04385129ecdd05d19613cd8163dc3f89315a3cd757c11e59f274828b12114ee
Contents?: true
Size: 391 Bytes
Versions: 52
Compression:
Stored size: 391 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %> < <%= parent_class_name.classify %> <% 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
52 entries across 51 versions & 8 rubygems