Commit 0096a3650a041d81869a1b3c682ffc647111414c
1 parent
35872e74
Exists in
master
and in
29 other branches
seeds: load plugin seeds instead of opening a new runner for each one
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
db/seeds.rb
... | ... | @@ -11,6 +11,4 @@ ENV['RAILS_ENV'] ||= 'development' |
11 | 11 | # This is for plugins that wants to use seeds.rb |
12 | 12 | # Check for example on the Foo plugin |
13 | 13 | plugin_seed_dirs = Dir.glob(Rails.root.join('{baseplugins,config/plugins}', '*', 'db', 'seeds.rb')) |
14 | -plugin_seed_dirs.each do |path| | |
15 | - system "rails runner #{path}" | |
16 | -end | |
14 | +plugin_seed_dirs.each { |path| load path } | ... | ... |