Permalink
Browse files

db:seed task now sorts environment specific seed files so that they c…

…an be ordered as well if needed
  • Loading branch information...
1 parent 7310cc3 commit 796f9246e25a2bd98e531e7ebab226888d359caa @ayqazi ayqazi committed Jun 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/seed_fu_tasks.rake
View
@@ -26,7 +26,7 @@ namespace :db do
fixture_path = ENV["FIXTURE_PATH"] ? ENV["FIXTURE_PATH"] : "db/fixtures"
global_seed_files = Dir[File.join(RAILS_ROOT, fixture_path, '*.rb')].sort
- env_specific_seed_files = Dir[File.join(RAILS_ROOT, fixture_path, RAILS_ENV, '*.rb')]
+ env_specific_seed_files = Dir[File.join(RAILS_ROOT, fixture_path, RAILS_ENV, '*.rb')].sort
potential_seed_files = (global_seed_files + env_specific_seed_files).uniq
if ENV["SEED"]

0 comments on commit 796f924

Please sign in to comment.