lib/artwork/model.rb in artwork-0.7.0 vs lib/artwork/model.rb in artwork-0.7.1

- old
+ new

@@ -61,9 +61,10 @@ def determine_alternative_size_for(alternative_sizes) return unless alternative_sizes new_size_definition = alternative_sizes \ + .select { |key, value| key.is_a? Numeric } \ .sort_by { |max_resolution, size| max_resolution } \ .find { |max_resolution, size| Artwork.actual_resolution <= max_resolution } new_size_definition.last if new_size_definition end