module PatchedConfiguration

Public Instance Methods

database_connection_config() click to toggle source

Monkeypatch to support Cloud SQL by returning the necessary settings.

Calls superclass method
# 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