--inherit does not seem to work
Opened this issue · 1 comments
code-surfer commented
The documented
$ yo marionette:model model-name --inherit model-name
does not seem to work. It always extends from Backbone.Model.
Looking at the code (model/index.js), 'inherit' is a positional argument, not an option?
If I grok the code with the NamedBase correctly, it means that the generator takes three positional arguments: name, model and inherit.
Testing this with the command
$ yo marionette:model bar dummy foo
I finally get an app/scripts/models/bar.js that extends from models/foo as Foo.
mrichard commented
in the works to fix this. Should be soon :).