I’m attempting to build a somewhat non-standard architecture around the
Rails apps that I’m building for a customer. We’re looking for a way to
be able to share models across projects using RubyGems.
The reasons we want to take this approach are:
- Shared model logic, without duplication
- Quick development of new applications
- Small test suite per application
- Mini-apps (potentially non-web) without full rails stack
I have seen solutions related to symlinking the app/models folders into
each application or using svn:externals, but these both seem suboptimal.
Ideally, I’d like to be able to:
and have access to any of my models.
I have experienced some headaches with plugins and I expect to see more.
Does anyone have any suggestions for implementing this type of
architecture or am I doomed to have one monolithic Rails app?