diff options
author | Christopher Meiklejohn <christopher.meiklejohn@gmail.com> | 2011-07-29 21:26:21 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-02 18:55:59 -0700 |
commit | 74d7bfb200e4590e244558554e147a31d30990df (patch) | |
tree | 1402f8eebcae92c9566607a28ce8814f1b7a7651 /activerecord/lib/active_record | |
parent | 3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 (diff) | |
download | rails-74d7bfb200e4590e244558554e147a31d30990df.tar.gz rails-74d7bfb200e4590e244558554e147a31d30990df.tar.bz2 rails-74d7bfb200e4590e244558554e147a31d30990df.zip |
Support backwards compatible interface for migration down/up with rails 3.0.x.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 507f345ef5..9307d7ef24 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -329,6 +329,7 @@ module ActiveRecord end def self.method_missing(name, *args, &block) # :nodoc: + self.delegate = self.new (delegate || superclass.delegate).send(name, *args, &block) end |