Class: ActiveRecord::Base
Class Method Summary collapse
-
.nulldb_connection(config) ⇒ Object
Instantiate a new NullDB connection.
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 |