mirror of
				https://github.com/discourse/discourse-solved.git
				synced 2025-11-04 00:19:05 +00:00 
			
		
		
		
	This commit autoloads plugin files, and also extracts features into their own modules. - `plugin.rb` is smaller - external plugins like discourse-automation and discourse-assign have their own entrypoints - solved filters as well
		
			
				
	
	
		
			10 lines
		
	
	
		
			224 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			224 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
module ::DiscourseSolved
 | 
						|
  class Engine < ::Rails::Engine
 | 
						|
    engine_name PLUGIN_NAME
 | 
						|
    isolate_namespace DiscourseSolved
 | 
						|
    config.autoload_paths << File.join(config.root, "lib")
 | 
						|
  end
 | 
						|
end
 |