Sha256: c9018057cc7735565d88395d5c3e3da8e45934194801cb7ea3e68a6a4f439c8c

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

class <%= class_name %><%= " < #{options[:parent].classify}" if options[:parent] %>
<% unless options[:parent] -%>
  include Ripple::<%= "Embedded" if options[:embedded] || options[:embedded_in] %>Document
  <% if options[:embedded_in] -%>embedded_in :<%= options[:embedded_in].underscore %><% end -%>
<% end -%>

<% attributes.reject{|attr| attr.reference?}.each do |attribute| -%>
  property :<%= attribute.name %>, <%= attribute.type_class %>
<% end -%>
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
wyngle-ripple-0.1.0 lib/rails/generators/ripple/model/templates/model.rb.erb
better-ripple-1.0.0 lib/rails/generators/ripple/model/templates/model.rb.erb
ripple-1.0.0.beta2 lib/rails/generators/ripple/model/templates/model.rb.erb
ripple-1.0.0.beta lib/rails/generators/ripple/model/templates/model.rb