```ruby
class <%= class_name %>
  include MongoMapper::Document

<% attributes.each do |attribute| -%>
  key :<%= attribute.name %>, <%= attribute.to_s.camelcase %>
<% end -%>
<% if options[:timestamps] %>
  timestamps!
<% end -%>

end
```

Fix attribute type in generator
user
```ruby
class <%= class_name %>
  include MongoMapper::Document

<% attributes.each do |attribute| -%>
  key :<%= attribute.name %>, <%= attribute.type.to_s.camelcase %>
<% end -%>
<% if options[:timestamps] %>
  timestamps!
<% end -%>

end
```
assistant