Sha256: 046f3c7456d6abfebd64efa2f0909b5d0c4e701fb71e5ef547cf8f1c17458e34

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

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