Skip to content

Commit

Permalink
feat(collection generator): add crosslinks between collection and model.
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed Aug 26, 2016
1 parent 58ac9e1 commit 2025943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/collection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ var CollectionGenerator = generators.Base.extend(

, options:
{
description: 'Model for the ' + data.collectionName + ' collection.'
description: 'Model for the `{{#crossLink "' + data.className + '"}}{{/crossLink}}`.'
, singleton: false
}
}
Expand Down
4 changes: 3 additions & 1 deletion generators/collection/templates/collection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
class <%- className %> extends Backbone.Collection

###*
# The collection's `{{#crossLink "<%- modelClassName %>"}}{{/crossLink}}`.
#
# @property model
#
# @default <%- modelClassName %>
# @type Class
# @type Backbone.Model
# @static
# @final
###
Expand Down

0 comments on commit 2025943

Please sign in to comment.