Sha256: d5b37edaa2afdf0ddfcdcd7d6038f11fc5cb738d23d7dd67d77efb9bd6012d45
Contents?: true
Size: 343 Bytes
Versions: 72
Compression:
Stored size: 343 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? %> <% end -%> <% if attributes.any?(&:password_digest?) -%> has_secure_password <% end -%> end <% end -%>
Version data entries
72 entries across 72 versions & 3 rubygems