Class: ActiveRecord::Base

Inherits:
Object show all
Defined in:
lib/nulldb/extensions.rb

Class Method Summary collapse

Class Method Details

.nulldb_connection(config) ⇒ Object

Instantiate a new NullDB connection. Used by ActiveRecord internally.


28
29
30
# File 'lib/nulldb/extensions.rb', line 28

def self.nulldb_connection(config)
  ActiveRecord::ConnectionAdapters::NullDBAdapter.new(config)
end