Sha256: f21f6ef192619cad7c3f80f620fdc0349c4a35d7da5eabf6b57a4fcfad9c7386

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

class <%= model_namespace %> extends Backbone.Model
  paramRoot: '<%= singular_table_name %>'
  urlRoot: '/pbw/tokens/<%= 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/tokens/<%= class_name%>'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pbw-0.0.8 lib/generators/pbw/token/templates/model.coffee
pbw-0.0.7 lib/generators/pbw/token/templates/model.coffee
pbw-0.0.6 lib/generators/pbw/token/templates/model.coffee
pbw-0.0.5 lib/generators/pbw/token/templates/model.coffee