mirror of
				https://github.com/redmine/redmine.git
				synced 2025-11-03 20:06:24 +01:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			518 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			518 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| 
								 | 
							
								# Loads the core plugins located in lib/plugins
							 | 
						||
| 
								 | 
							
								Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|
							 | 
						||
| 
								 | 
							
								  if File.directory?(directory)
							 | 
						||
| 
								 | 
							
								    lib = File.join(directory, "lib")
							 | 
						||
| 
								 | 
							
								    if File.directory?(lib)
							 | 
						||
| 
								 | 
							
								      $:.unshift lib
							 | 
						||
| 
								 | 
							
								      ActiveSupport::Dependencies.autoload_paths += [lib]
							 | 
						||
| 
								 | 
							
								    end
							 | 
						||
| 
								 | 
							
								    initializer = File.join(directory, "init.rb")
							 | 
						||
| 
								 | 
							
								    if File.file?(initializer)
							 | 
						||
| 
								 | 
							
								      config = config = RedmineApp::Application.config
							 | 
						||
| 
								 | 
							
								      eval(File.read(initializer), binding, initializer)
							 | 
						||
| 
								 | 
							
								    end
							 | 
						||
| 
								 | 
							
								  end
							 | 
						||
| 
								 | 
							
								end
							 |