utils: fix option handling in 'odisabled'
Options passed to `odisabled` were completely ignored. Instead, merge them with the defaults that distinguish `odisabled` from `odeprecated`.
This commit is contained in:
		
							parent
							
								
									0a33cc591d
								
							
						
					
					
						commit
						1244aa6ece
					
				@ -152,7 +152,8 @@ def odeprecated(method, replacement = nil, options = {})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
def odisabled(method, replacement = nil, options = {})
 | 
			
		||||
  odeprecated(method, replacement, :die => true, :caller => caller)
 | 
			
		||||
  options = { :die => true, :caller => caller }.merge(options)
 | 
			
		||||
  odeprecated(method, replacement, options)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
def pretty_installed(f)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user