Class: SchemaDoc::Worker::AbstractModel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/schemadoc/worker.rb

Overview

fix: not really needed - remove ???

just use ActiveRecord::Base.establish_connection() directly ??

Class Method Summary collapse

Class Method Details

.connection_for(key_or_spec) ⇒ Object



299
300
301
302
# File 'lib/schemadoc/worker.rb', line 299

def self.connection_for( key_or_spec )
  establish_connection( key_or_spec )
  connection
end