$ 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.
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.