mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
git-svn-id: https://svn.redmine.org/redmine/trunk@22651 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 lines
370 B
Ruby
13 lines
370 B
Ruby
# 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
|