Only return unique paths

This commit is contained in:
Robin Ward 2017-11-16 15:22:05 -05:00
parent 966c7e7f07
commit fc346d207b
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class DiscoursePluginRegistry
unless Rails.env.test? && ENV['LOAD_PLUGINS'] != "1" unless Rails.env.test? && ENV['LOAD_PLUGINS'] != "1"
seed_path_builders.each { |b| result += b.call } seed_path_builders.each { |b| result += b.call }
end end
result result.uniq
end end
def javascripts def javascripts