Sha256: ec8bc90ef78484f5929b62abbd8e34b8f549e9025fbcb40d55f709880fe77092

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

class <%=collection_namespace%>Collection extends <%= js_app_name %>.Collection
  name: '<%= plural_name %>'
  model: <%=model_namespace%>Model
  url: '/<%= plural_table_name %>'

do ->
  instance = null
  <%=collection_namespace%>Collection.getInstance = ->
    if not instance
      instance = new <%=collection_namespace%>Collection
    instance

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thorax-rails-1.0.0 lib/generators/thorax/model/templates/collection.coffee
thorax-rails-0.1.8 lib/generators/thorax/model/templates/collection.coffee