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

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

end

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

Fix attribute type in generator
Fix attribute type in generator