Sha256: d5a8a8103b29dac3bac1680e1986736c81379ecfa1cbeb0c4d86229c1b3499aa
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %> < <%= parent_class_name.classify %> sharding_group :<%= group %> <% 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sengiri-0.1.0 | lib/sengiri/generators/templates/model.rb |
sengiri-0.0.2 | lib/sengiri/generators/templates/model.rb |
sengiri-0.0.1 | lib/sengiri/generators/templates/model.rb |