Module: Mover::Migration

Defined in:
lib/mover.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/mover.rb', line 50

def self.included(base)
  unless base.included_modules.include?(Included)
    base.extend Migrator
    base.send :include, Included
    base.class_eval do
      class <<self
        alias_method :method_missing_without_mover, :method_missing
        alias_method :method_missing, :method_missing_with_mover
      end
    end
  end
end