Hacker News new | ask | show | jobs
by baghali 5226 days 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/

1 comments

Why not package them as a gem?
We 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.
You 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.