Sha256: 37033e97813b9dc9d4c2ec9cbdad39a6d9df77d610a474cf4147aceeb84d27fa

Contents?: true

Size: 260 Bytes

Versions: 38

Compression:

Stored size: 260 Bytes

Contents

class <%= class_name %> < MongoModel::<%= "Embedded" if options[:embedded] %>Document
  <%- attributes.each do |a| -%>
  <%= "property :#{a.name}, #{a.type.capitalize}" %>
  <%- end -%>
  <%= "timestamps!" if options[:timestamps] && !options[:embedded] %>
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mongomodel-0.5.7 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.6 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.5 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.4 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.3 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.2 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.1 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.5.0 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.9 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.8 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.7 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.6 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.5 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.4 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.3 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.2 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.1 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.4.0 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.3.6 lib/rails/generators/mongo_model/model/templates/model.rb
mongomodel-0.3.5 lib/rails/generators/mongo_model/model/templates/model.rb