Sha256: 692545094a4c95468d81184e4743dc3658ad5725ee085282c47c8fc46173d846

Contents?: true

Size: 205 Bytes

Versions: 4

Compression:

Stored size: 205 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>
  include Ampere::Model

<% attributes.reject{|attr| attr.reference?}.each do |attribute| -%>
  field :<%= attribute.name %>
<% end -%>

end
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ampere-1.2.3 lib/rails/generators/ampere/model/templates/model.rb.tt
ampere-1.2.2 lib/rails/generators/ampere/model/templates/model.rb.tt
ampere-1.2.1 lib/rails/generators/ampere/model/templates/model.rb.tt
ampere-1.2.0 lib/rails/generators/ampere/model/templates/model.rb.tt