Add comment to point out String#[] is intentional

This commit is contained in:
Andrew White 2014-11-02 23:57:32 +00:00
parent 1b958e0a79
commit badd616cc9

@ -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