All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Move the various sections to their own concerns, so they're easier to find and maintain
		
			
				
	
	
		
			17 lines
		
	
	
		
			432 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			432 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
module Settings
 | 
						|
  module DiscourseSettings
 | 
						|
    extend ActiveSupport::Concern
 | 
						|
 | 
						|
    included do
 | 
						|
      field :discourse_public_url, type: :string,
 | 
						|
        default: ENV["DISCOURSE_PUBLIC_URL"].presence
 | 
						|
 | 
						|
      field :discourse_enabled, type: :boolean,
 | 
						|
        default: ENV["DISCOURSE_PUBLIC_URL"].present?
 | 
						|
 | 
						|
      field :discourse_connect_secret, type: :string,
 | 
						|
        default: ENV["DISCOURSE_CONNECT_SECRET"].presence
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |