Class: Yasarg::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/yasarg/connection.rb

Class Method Summary collapse

Class Method Details

.establishObject



4
5
6
7
# File 'lib/yasarg/connection.rb', line 4

def establish
  configuration = Yasarg::RailsFakeApp.config.database_configuration[Rails.env]
  ActiveRecord::Base.establish_connection(configuration)
end