# frozen_string_literal: true
# Loads the core plugins located in lib/plugins
-Dir.glob(Rails.root.join('lib/plugins/*')).sort.each do |directory|
+Dir.glob(Rails.root.join('lib/plugins/*')).each do |directory|
next unless File.directory?(directory)
initializer = File.join(directory, 'init.rb')
def self.setup
@plugin_directories = []
- Dir.glob(File.join(directory, '*')).sort.each do |directory|
+ Dir.glob(File.join(directory, '*')).each do |directory|
next unless File.directory?(directory)
@plugin_directories << PluginPath.new(directory)