Sha256: 32642f48456da7028639e79bc02afba2756e8219db1ded8113ccf94584afef70

Contents?: true

Size: 192 Bytes

Versions: 4

Compression:

Stored size: 192 Bytes

Contents

class <%= param(:name).singular.camelcase %>
  include DataMapper::Persistence
  
<% 
for column in columns
-%>
  property :<%= column.column_name %>, :<%= column.column_type %>
<%
end
-%>
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mack-0.4.7 lib/generators/model_generator/templates/data_mapper.rb.template
mack-data_mapper-0.5.1 lib/model_generator/templates/model.rb.template
mack-data_mapper-0.5.5 lib/model_generator/templates/model.rb.template
mack-data_mapper-0.5.0 lib/model_generator/templates/model.rb.template