diff --git a/app/models/notification_type.rb b/app/models/notification_type.rb index f1b789270aaa..56b4d5ec0751 100644 --- a/app/models/notification_type.rb +++ b/app/models/notification_type.rb @@ -54,7 +54,9 @@ def self.seed end def self.seed_data - fixture_file = File.join(FIXTURE_DIR, 'notification_types.yml') - File.exist?(fixture_file) ? YAML.load_file(fixture_file) : [] + [FIXTURE_DIR.join('notification_types.yml')] + + Vmdb::Plugins.map { |plugin| plugin.root.join("content/notification_types.yml") } + .select(&:exist?) + .flat_map { |f| YAML.load_file(f) } end end