diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2011-10-29 14:14:13 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2011-10-29 14:14:13 -0700 |
commit | eabda416b7c66f3b8d03237e7334bd2d14ff9190 (patch) | |
tree | c2a146dfc11cbd7744134a8917ee8d8adba52bdf /railties/lib/rails/engine.rb | |
parent | e848bcacdd324903875a18b998403fb141a05dd3 (diff) | |
download | rails-eabda416b7c66f3b8d03237e7334bd2d14ff9190.tar.gz rails-eabda416b7c66f3b8d03237e7334bd2d14ff9190.tar.bz2 rails-eabda416b7c66f3b8d03237e7334bd2d14ff9190.zip |
Removing db/seeds.rb is fine. Don't blow up.
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 2d25273050..1c9627734e 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -488,7 +488,7 @@ module Rails # Blog::Engine.load_seed def load_seed seed_file = paths["db/seeds"].existent.first - load(seed_file) if File.exist?(seed_file) + load(seed_file) if seed_file && File.exist?(seed_file) end # Add configured load paths to ruby load paths and remove duplicates. |