Sha256: 58d1dfe280519f1233657bc2654565a0b39d3cc1f8331d0e2dc7f76dc8551173

Contents?: true

Size: 204 Bytes

Versions: 6

Compression:

Stored size: 204 Bytes

Contents

module Crudboy
  class Connection
    class << self
      def open(options)
        ActiveRecord::Base.establish_connection(options)
        $C = ActiveRecord::Base.connection
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crudboy-0.1.5 lib/crudboy/connection.rb
crudboy-0.1.4 lib/crudboy/connection.rb
crudboy-0.1.3 lib/crudboy/connection.rb
crudboy-0.1.2 lib/crudboy/connection.rb
crudboy-0.1.1 lib/crudboy/connection.rb
crudboy-0.1.0 lib/crudboy/connection.rb