Skip to content

Commit

Permalink
Add comment to point out String#[] is intentional
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Nov 2, 2014
1 parent 1b958e0 commit badd616
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/lib/active_record/railties/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit badd616

Please sign in to comment.