summaryrefslogtreecommitdiffstats
path: root/config/initializers/00-core_plugins.rb
blob: 4fbab32500fcce62bd87d9c6a2c03b54378a311f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# Loads the core plugins located in lib/plugins
Dir.glob(Rails.root.join('lib/plugins/*')).each do |directory|
  next unless File.directory?(directory)

  initializer = File.join(directory, 'init.rb')
  if File.file?(initializer)
    config = RedmineApp::Application.config
    eval(File.read(initializer), binding, initializer)
  end
end