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:
parent
b6105b0b59
commit
e9382474fd
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue