diff options
author | Kelley Reynolds <kelley@insidesystems.net> | 2014-03-28 13:19:47 -0400 |
---|---|---|
committer | Kelley Reynolds <kelley@insidesystems.net> | 2014-03-28 13:19:47 -0400 |
commit | e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc (patch) | |
tree | f8f8d19f5f40bf4b368523ba5525b1bd75182f90 /activerecord/lib/active_record/railties | |
parent | 74d7df175c83e73347114c004ff861aec0572928 (diff) | |
download | rails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.tar.gz rails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.tar.bz2 rails-e43cd0a4c9c1d33c7d1007a51ad885a579c0bfbc.zip |
Replace trivial regexp with string or index, twice as fast
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index ff1f0f5911..6b0459ea37 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -186,7 +186,7 @@ db_namespace = namespace :db do fixtures_dir = File.join [base_dir, ENV['FIXTURES_DIR']].compact - (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir["#{fixtures_dir}/**/*.yml"].map {|f| f[(fixtures_dir.size + 1)..-5] }).each do |fixture_file| + (ENV['FIXTURES'] ? ENV['FIXTURES'].split(',') : Dir["#{fixtures_dir}/**/*.yml"].map {|f| f[(fixtures_dir.size + 1)..-5] }).each do |fixture_file| ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, fixture_file) end end |