Sha256: 39f2a650f754b43084b0be40b54a0e44cb96278d44e6b9155afc705ae8af0321

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

# encoding: utf-8

<% module_namespacing do -%>
class <%= class_name %> < <%= parent_class_name.classify %>
  # Constants
  # Includes
  # Associations
  <%- attributes.select {|attr| attr.reference? }.each do |attribute| -%>
  belongs_to :<%= attribute.name %>
  <% end -%>
  # Delegations
  # Validations
  # Callbacks
  # InstantMethods
  # ClassMethods 
end
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playmo-0.1.2 lib/generators/templates/active_record/model/model.rb
playmo-0.1.1 lib/generators/templates/active_record/model/model.rb
playmo-0.1.0 lib/generators/templates/active_record/model/model.rb
playmo-0.0.18 lib/generators/templates/active_record/model/model.rb
playmo-0.0.17 lib/generators/templates/active_record/model/model.rb