All checks were successful
		
		
	
	Run unit tests / check-licenses (pull_request) Successful in 35s
				
			Run unit tests / copyright_notice (pull_request) Successful in 40s
				
			Run unit tests / rubocop (pull_request) Successful in 1m10s
				
			Run unit tests / unit_tests (pull_request) Successful in 1m47s
				
			Run unit tests / build-static-assets (pull_request) Successful in 14m53s
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # Copyright (C) 2024-2025 LibreWeddingPlanner contributors
 | |
| 
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| class ApplicationMailer < ActionMailer::Base
 | |
|   class << self
 | |
|     private
 | |
| 
 | |
|     def default_from
 | |
|       File.read('/run/secrets/smtp_user_name').strip
 | |
|     rescue Errno::ENOENT
 | |
|       'development@example.com'
 | |
|     end
 | |
|   end
 | |
| 
 | |
|   default from: default_from
 | |
|   layout 'mailer'
 | |
| end
 |