Module: Connection
- Defined in:
- lib/helper/connection_helpers.rb
Class Method Summary collapse
Class Method Details
.new(connection_params) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/helper/connection_helpers.rb', line 5 def self.new(connection_params) begin puts ("Connecting to MYSql database...") return ActiveRecord::Base.establish_connection(connection_params) rescue Exception => e raise e. end end |