Sha256: eb0fa721fd6cf279a399c8b5b74f2554c8200f6c3bae50add15dce920cf4f587

Contents?: true

Size: 462 Bytes

Versions: 13

Compression:

Stored size: 462 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

13 entries across 13 versions & 2 rubygems

Version Path
seomoz-ripple-1.0.0.pre lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.5 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.3 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.2 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.0 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.0.beta2 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.9.0.beta lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.3 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.2 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.1 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.0 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.0.beta2 lib/rails/generators/ripple/model/templates/model.rb
ripple-0.8.0.beta lib/rails/generators/ripple/model/templates/model.rb