Add comment to point out String#[] is intentional
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user