Sha256: 2e3787dbf025f53e418cdf986c96454cda8776ad3d97ec552afcd7bb0dba340e

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

class <%= model_namespace %> extends Backbone.Model
  paramRoot: '<%= singular_table_name %>'
  urlRoot: '/pbw/capabilities/<%= class_name%>'

  defaults:
    name: null
    _type: '<%= class_name%>'
<% attributes.each do |attribute| -%>
    <%= attribute.name %>: null
<% end -%>

class <%= collection_namespace %>Collection extends Backbone.Collection
  model: <%= model_namespace %>
  url: '/pbw/capabilities/<%= class_name%>'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pbw-0.0.8 lib/generators/pbw/rules/capability/templates/model.coffee
pbw-0.0.7 lib/generators/pbw/rules/capability/templates/model.coffee
pbw-0.0.6 lib/generators/pbw/rules/capability/templates/model.coffee