Closes #55.
Showing the changes to assets/javascripts/models (1 of 3 files). Show all
Unified · Split
| @@ -6,3 +6,9 @@ class app.models.Type extends app.Model · 5 unmodified lines | ||
| 6 | 6 | |
| 7 | 7 | entries: -> |
| 8 | 8 | @doc.entries.findAllBy 'type', @name |
| 9 | + | |
| 10 | + toEntry: -> | |
| 11 | + new app.models.Entry | |
| 12 | + doc: @doc | |
| 13 | + name: "#{@doc.name} / #{@name}" | |
| 14 | + path: '..' + @fullPath() | |