1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

seed file was already tested for existence. ಠ_ಠ

This commit is contained in:
Aaron Patterson 2011-12-14 19:09:31 -08:00
parent b6105b0b59
commit e9382474fd

View file

@ -517,7 +517,7 @@ module Rails
# Blog::Engine.load_seed
def load_seed
seed_file = paths["db/seeds"].existent.first
load(seed_file) if seed_file && File.exist?(seed_file)
load(seed_file) if seed_file
end
# Add configured load paths to ruby load paths and remove duplicates.