This seems like something that people must have already worked out, so
I’m probably just not finding the right combination of search terms.
If I were to share some domain classes between one Rails application
and another – what’s the right way to make that happen? For
instance, imagine I’d already written a retail banking site with
CreditCard, CreditCardTransaction, and other credit card domain
objects, as well as bank accounts and so forth. Now i want to build
an internal application for credit card fraud, and i’d like to re-use
my domain objects and share a database, but host this application
What’s the “Rails Way” for that? For shared non-application-specific
functionality, I imagine I’d use a plugin, but it doesn’t sound like
the right choice for share domain or application-specific code.