module DBNazi::AbstractAdapter::ClassMethods

Public Instance Methods

new(*) click to toggle source
Calls superclass method
# 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