class ActiveRecord::Snapshot::Configuration::DBConfig

Public Class Methods

new(env) click to toggle source
Calls superclass method
# File lib/active_record/snapshot/configuration.rb, line 32
def initialize(env)
  database_hash = ::Rails.application.config.database_configuration[env]
  super(database_hash.slice("database", "username", "password", "host"))
end