Autofix Rubocop Style/HashSyntax (#23754)
This commit is contained in:
		
					parent
					
						
							
								d5a185d721
							
						
					
				
			
			
				commit
				
					
						da3bd913ae
					
				
			
		
					 7 changed files with 9 additions and 22 deletions
				
			
		|  | @ -34,8 +34,8 @@ class MediaAttachment < ApplicationRecord | |||
| 
 | ||||
|   include Attachmentable | ||||
| 
 | ||||
|   enum type: { :image => 0, :gifv => 1, :video => 2, :unknown => 3, :audio => 4 } | ||||
|   enum processing: { :queued => 0, :in_progress => 1, :complete => 2, :failed => 3 }, _prefix: true | ||||
|   enum type: { image: 0, gifv: 1, video: 2, unknown: 3, audio: 4 } | ||||
|   enum processing: { queued: 0, in_progress: 1, complete: 2, failed: 3 }, _prefix: true | ||||
| 
 | ||||
|   MAX_DESCRIPTION_LENGTH = 1_500 | ||||
| 
 | ||||
|  | @ -135,7 +135,7 @@ class MediaAttachment < ApplicationRecord | |||
|       convert_options: { | ||||
|         output: { | ||||
|           'loglevel' => 'fatal', | ||||
|           vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease', | ||||
|           :vf => 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease', | ||||
|         }.freeze, | ||||
|       }.freeze, | ||||
|       format: 'png', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue