Could this be address with ConnectionHandler
<http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionHandler.html>?
I imagine models in each engine could call with "establish_connection
:my_engine" (or inherit from a base class a'la ApplicationRecord) and then
database.yml could provide per-engine connection settings. If an engine
needs to use the "default" database then it'd just inherit the settings for
production.

Best regards
Greg Navis

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to