Module: PatchedConfiguration
- Defined in:
- lib/patched/configuration.rb
Instance Method Summary collapse
-
#database_connection_config ⇒ Object
Monkeypatch to support Cloud SQL by returning the necessary settings.
Instance Method Details
#database_connection_config ⇒ Object
Monkeypatch to support Cloud SQL by returning the necessary settings.
20 21 22 23 24 25 26 |
# File 'lib/patched/configuration.rb', line 20 def database_connection_config if self[:db_adapter] == "cloud_sql" { adapter: "mysql2" }.merge(self[:db_connection_options]) else super end end |