sailsCasts

Learning about sails.js one screencast at a time.

sailsCasts Answers: Ep1 - Question About Using a Service to Allow Inheritance in a Model.

| Comments

You can find the original question in googlegroups here: https://groups.google.com/forum/#!topic/sailsjs/GTGoOGHAEvE

The Question: I have a few models, where two of them will have the same fields as the first. So i want to set their prototype to the first model. Is there any special way you guys are doing this?

Here’s the Answer:

Comments