mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 08:26:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| # Just an example, to be replaced with an actual implementation
 | |
| module MyModuleStatusImplications
 | |
|   class ReadOnly < MyModuleStatusImplication
 | |
|     def call(my_module)
 | |
|       my_module.errors.add(:status_implication, 'Is read only')
 | |
|       false
 | |
|     end
 | |
|   end
 | |
| end
 |