attachment_magick 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/lib/attachment_magick.rb
CHANGED
@@ -54,7 +54,8 @@ module AttachmentMagick
|
|
54
54
|
if value.is_a?(String)
|
55
55
|
width, height = value.split("x")
|
56
56
|
option = {:width => width.to_i}
|
57
|
-
option.merge!({:height
|
57
|
+
option.merge!({:height => height.to_i}) if height
|
58
|
+
option.merge!({:ajust => height.match(/\W/).to_s}) unless height.match(/\W/).to_s.blank? if height
|
58
59
|
end
|
59
60
|
|
60
61
|
hash.merge!({key.to_sym => option})
|