Namespaced mode models


(Ryan Heneise) #1

Have you experimented with namespacing node models? It would be nice to keep all the PushType-related models under app/models/nodes rather than having them clutter up app/models. It might also help to avoid naming collisions in larger apps. Is this something that you’ve experimented with?


(Aaron Russell) #2

I’ve not experimented with this. I don’t think that it would cause any issues, although in the admin UI you might see the full namespaced class name used on various buttons and UI elements.

If that does occur, I believe you can possibly override the sti_name class method on your node models to return a more human friendly name… although none of this is tested so I could well be wrong :stuck_out_tongue: