Update ESLint and RuboCop in Code Climate (#12534)
This commit is contained in:
		
					parent
					
						
							
								27d5d02925
							
						
					
				
			
			
				commit
				
					
						6be16d02cb
					
				
			
		
					 6 changed files with 13 additions and 6 deletions
				
			
		|  | @ -9,8 +9,8 @@ module Paperclip | |||
|         min_side = [@current_geometry.width, @current_geometry.height].min.to_i | ||||
|         options[:geometry] = "#{min_side}x#{min_side}#" if @target_geometry.square? && min_side < @target_geometry.width | ||||
|       elsif options[:pixels] | ||||
|         width  = Math.sqrt(options[:pixels] * (@current_geometry.width.to_f / @current_geometry.height.to_f)).round.to_i | ||||
|         height = Math.sqrt(options[:pixels] * (@current_geometry.height.to_f / @current_geometry.width.to_f)).round.to_i | ||||
|         width  = Math.sqrt(options[:pixels] * (@current_geometry.width.to_f / @current_geometry.height)).round.to_i | ||||
|         height = Math.sqrt(options[:pixels] * (@current_geometry.height.to_f / @current_geometry.width)).round.to_i | ||||
|         options[:geometry] = "#{width}x#{height}>" | ||||
|       end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue