Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/active_record/connection_adapters/informix_adapter.rb
Class Method Summary collapse
Class Method Details
.informix_connection(config) ⇒ Object
:nodoc:
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/active_record/connection_adapters/informix_adapter.rb', line 32 def self.informix_connection(config) #:nodoc: require 'informix' unless self.class.const_defined?(:Informix) require 'stringio' config = config.symbolize_keys database = config[:database].to_s username = config[:username] password = config[:password] db = Informix.connect(database, username, password) ConnectionAdapters::InformixAdapter.new(db, logger) end |