Module: UseDb::Migration

Defined in:
lib/use_db/migration.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/use_db/migration.rb', line 3

def self.included(base)
	unless base.respond_to?(:method_missing_without_connection_swap)
		base.extend(ClassMethods)
		base.class_eval do
			class << self
				alias_method_chain :method_missing, :connection_swap
			end
		end 
	end 
end