add ability to switch off generation of sub-resources for model

I've need this ability, so guess anybody will need too. But I'm not sure if it will not break something.