Class: RailsDbBrowser::ConnectionKeeper::FakeModel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RailsDbBrowser::ConnectionKeeper::FakeModel
- Defined in:
- lib/rails_db_browser/connection_keeper.rb
Constant Summary collapse
- CONNECTS =
{}
Class Method Summary collapse
Class Method Details
.get_connection(name) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rails_db_browser/connection_keeper.rb', line 21 def self.get_connection(name) CONNECTS[name] ||= begin establish_connection(name) connection end end |