Sha256: 84663f5da94ec703afe2d8399a338eec9d63a98a9e6552734f95b1a59003cc3a
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
class <%= class_name %> include Mongoid::Document include Mongoid::Versioning include Mongoid::Timestamps # Types: Array, Boolean, Date, DateTime, Float, Integer, String, Time and any object that inherits from Mongoid::Document. # Associations: has_one, has_many, belongs_to <% for attribute in attributes -%> field :<%= attribute.name %>, :type => <%= attribute.type %> <% end -%> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_db_model-0.3.1 | lib/generators/mongoid/model/templates/model.rb |