lib/also_migrate/migrator.rb in also_migrate-0.3.3 vs lib/also_migrate/migrator.rb in also_migrate-0.3.4
- old
+ new
@@ -1,9 +1,9 @@
module AlsoMigrate
module Migrator
def self.included(base)
- unless base.respond_to?(:migrate_with_also_migrate)
+ 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
\ No newline at end of file