diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-23 18:20:28 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-23 18:22:46 -0700 |
commit | ed21f0c50270139ddb6993acfdaea4586ffd09a3 (patch) | |
tree | 1b091545c5a27908e01362e83330c1f772d719ee /activerecord/lib/active_record | |
parent | bc48d39e4c0348f627f9bf2d9090082c54a052c7 (diff) | |
download | rails-ed21f0c50270139ddb6993acfdaea4586ffd09a3.tar.gz rails-ed21f0c50270139ddb6993acfdaea4586ffd09a3.tar.bz2 rails-ed21f0c50270139ddb6993acfdaea4586ffd09a3.zip |
expand migration paths before requiring them. [#4240 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 23e4505f61..d4cda927ad 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -374,7 +374,7 @@ module ActiveRecord end def load_migration - require(filename) + require(File.expand_path(filename)) name.constantize end |