Sha256: 259e1a971b9586f666955c9d6d02b579579994d5fd8ef4556253683ffd1f9fe1

Contents?: true

Size: 322 Bytes

Versions: 16

Compression:

Stored size: 322 Bytes

Contents

class <%= class_name %><%= "< #{options[:parent].classify}" if parent? %>
<% unless parent? -%>
  include DataMapper::Resource

  property :id, Serial
<% end -%>
<% attributes.each do |attribute| -%>
  property :<%= attribute.name %>, <%= attribute.type_class %>
<% end -%>

<%= timestamp_statements if timestamps? %>
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails3-generators-1.0.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.6 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.5 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.4 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.3 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.2 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.1 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.17.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.16.1 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.16.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.15.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.14.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.13.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.12.1 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.12.0 lib/generators/data_mapper/model/templates/model.rb
rails3-generators-0.11.0 lib/generators/data_mapper/model/templates/model.rb