Module: AlsoMigrate::Migrator
- Defined in:
- lib/also_migrate/migrator.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/also_migrate/migrator.rb', line 4 def self.included(base) unless base.included_modules.include?(InstanceMethods) base.send :include, InstanceMethods base.class_eval do alias_method :migrate_without_also_migrate, :migrate alias_method :migrate, :migrate_with_also_migrate end end end |