Sha256: e65667c7e512dd63f6f72c5f250089fc11451aee3b00879f62b2d969157cd944

Contents?: true

Size: 272 Bytes

Versions: 6

Compression:

Stored size: 272 Bytes

Contents

<% module_namespacing do -%>
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
<% end -%>

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
mongo_mapper-0.12.0 lib/rails/generators/mongo_mapper/model/templates/model.rb
lookout-mongo_mapper-0.11.3 lib/rails/generators/mongo_mapper/model/templates/model.rb
mongo_mapper-0.11.2 lib/rails/generators/mongo_mapper/model/templates/model.rb
jamieorc-mongo_mapper-0.11.1.1 lib/rails/generators/mongo_mapper/model/templates/model.rb
mongo_mapper-0.11.1 lib/rails/generators/mongo_mapper/model/templates/model.rb
mongo_mapper-0.11.0 lib/rails/generators/mongo_mapper/model/templates/model.rb