Module: DBNazi::AbstractAdapter::ClassMethods

Defined in:
lib/db_nazi/abstract_adapter.rb

Instance Method Summary collapse

Instance Method Details

#newObject



6
7
8
9
10
11
12
13
# File 'lib/db_nazi/abstract_adapter.rb', line 6

def new(*)
  # We mix into singleton classes here, since some adapters define these
  # methods directly in their classes (e.g. SQLite3Adapter#change_column),
  # and we don't want to load these classes just to monkeypatch them.
  super.tap do |adapter|
    adapter.extend Adapter
  end
end