Sha256: 9f76711e751bcd1e768479d2871a7391b41862c5a18c4192299563a9a4df2d4a
Contents?: true
Size: 570 Bytes
Versions: 6
Compression:
Stored size: 570 Bytes
Contents
# encoding: utf-8 module <%= @name.camel_case %> <% @models.each do |model| %> <% case @orm %> <% when "datamapper" %> class <%= model.camel_case %> include DataMapper::Resource property :title, String property :slug, String, key: true end <% when "sequel" %> class <%= model.camel_case < Sequel::Model %> # TODO: implement <%= model %> model end <% when "mongomapper" %> class <%= model.camel_case %> include MongoMapper::Document key :title, String key :slug, String, index: true end <% end %> <% end %> end
Version data entries
6 entries across 6 versions & 1 rubygems