This commit is contained in:
Toks
2013-12-16 14:19:59 -05:00
parent c03203f67a
commit 2b30821913

View File

@@ -460,7 +460,7 @@ class Post < ActiveRecord::Base
if image_width >= 1024 && image_width.to_f / image_height >= 4 if image_width >= 1024 && image_width.to_f / image_height >= 4
tags << "wide_image" tags << "wide_image"
elsif image_height >= 1024 && image_height.to_f / image_width >= 4 elsif image_height >= 1024 && image_height.to_f / image_width >= 4
tags << "tag_image" tags << "tall_image"
end end
return tags return tags