Sha256: 40b3b5d6cab53beda0380a95a2f8ed1630405d37ff2709b8d959009013bfa294

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

# encoding: utf-8

<% @models.each do |model| %>
<% case @orm %>
<% when "datamapper" %>
class <%= "#{@name.camel_case}::#{model.camel_case}" %>
  include DataMapper::Resource
  property :title, String
end

<% when "sequel" %>
class <%= "#{@name.camel_case}::#{model.camel_case}" < Sequel::Model %>
  # TODO: implement <%= model %> model
end

<% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rango-0.0.6 stubs/app/content/models.rb.rbt