3 ms·
I don't know what github is doing about their models, but I have fairly easy solution of my own: I always symlink models in my projects. We have 2 large Rails
by baghali 15y ago
I don't know what github is doing about their models, but I have fairly easy solution of my own: I always symlink models in my projects.
We have 2 large Rails projects and an API server using Goliath[1], one of the Rails projects and the goliath server use models with symlinks.
[1] Goliath: http://postrank-labs.github.com/goliath/ http://postrank-labs.github.com/goliath/
- bretthopper 15y agoWhy not package them as a gem?
- baghali 15y agoWe are still doing massive development, once our codebase is stable enough we will move them into small gems, right now it's just a bit of hassle running bundle update for every small increment.
- heimidal 15y agoYou can plan this migration ahead of time by moving your models into gems stored in, say, vendor/future_gems/. Then just reference each gem in bundler as: gem "my_models", path: "vendor/future_gems/my_models/" Once you are able to break them out completely, just remove the path reference and use a gem server instead.