diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-11-02 23:57:32 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-11-02 23:58:30 +0000 |
commit | badd616cc931dc64de2540d734f5e01000262c0f (patch) | |
tree | 8aabb082959dabe274d5650d1045d003511ec808 /activerecord/lib/active_record/railties | |
parent | 1b958e0a79ea92bdcc33f1c2e2882f9a3aac154c (diff) | |
download | rails-badd616cc931dc64de2540d734f5e01000262c0f.tar.gz rails-badd616cc931dc64de2540d734f5e01000262c0f.tar.bz2 rails-badd616cc931dc64de2540d734f5e01000262c0f.zip |
Add comment to point out String#[] is intentional
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 9130649e8d..3ec25f9f17 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -196,6 +196,7 @@ db_namespace = namespace :db do fixture_files = if ENV['FIXTURES'] ENV['FIXTURES'].split(',') else + # The use of String#[] here is to support namespaced fixtures Dir["#{fixtures_dir}/**/*.yml"].map {|f| f[(fixtures_dir.size + 1)..-5] } end |