Class: Crudboy::Connection

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

Class Method Summary collapse

Class Method Details

.open(options) ⇒ Object



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

def open(options)
  ActiveRecord::Base.establish_connection(options)
  $C = ActiveRecord::Base.connection
end