Module: Connection

Defined in:
lib/helper/connection_helpers.rb

Class Method Summary collapse

Class Method Details

.new(connection_params) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/helper/connection_helpers.rb', line 6

def self.new(connection_params)
  begin
    put_log ("Connecting to database...")
    return ActiveRecord::Base.establish_connection(connection_params)
  rescue Exception => e
    raise e.message
  end
end