Only return unique paths
This commit is contained in:
parent
966c7e7f07
commit
fc346d207b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue