warp_drive 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,14 @@
1
1
  module ActiveRecord # :nodoc:
2
2
  class Migrator # :nodoc:
3
3
 
4
- migs = []
5
- migs << ActiveRecord::Migrator.new(:up, WarpDrive::Path.db.migrate).migrations
6
- migs << ActiveRecord::Migrator.new(:up, File.join(RAILS_ROOT, 'db', 'migrate')).migrations
7
- migs.flatten!
8
-
9
- define_method('migrations') do
10
- return migs
4
+ def migrations_with_warp_drive
5
+ migs = []
6
+ migs << ActiveRecord::Migrator.new(:up, WarpDrive::Path.db.migrate).migrations
7
+ migs << ActiveRecord::Migrator.new(:up, File.join(RAILS_ROOT, 'db', 'migrate')).migrations
8
+ migs.flatten
11
9
  end
10
+
11
+ alias_method_chain :migrations, :warp_drive
12
12
 
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warp_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-07 00:00:00 -04:00
12
+ date: 2009-10-21 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency