Sha256: d0a4a102f05153dbcc52635b69b97c136c3f255b2ff4beec23caf745e0a91d2e

Contents?: true

Size: 342 Bytes

Versions: 4

Compression:

Stored size: 342 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %><%= " < #{options[:parent].classify}" if options[:parent] %>
<% unless options[:parent] -%>
  include Guacamole::Model
<% end -%>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guacamole-0.4.0 lib/rails/generators/guacamole/model/templates/model.rb.tt
guacamole-0.3.0 lib/rails/generators/guacamole/model/templates/model.rb.tt
guacamole-0.2.0 lib/rails/generators/guacamole/model/templates/model.rb.tt
guacamole-0.1.0 lib/rails/generators/guacamole/model/templates/model.rb.tt