OSDN Git Service

t#29689:test layout flag droppable
[pettanr/pettanr.git] / app / models / original_picture.rb
index bd776a6..534e337 100644 (file)
@@ -41,7 +41,7 @@ class OriginalPicture < ActiveRecord::Base
   end
   
   def opt_img_tag
-    tw, th = ResourcePicture.fix_size_both(MagicNumber['thumbnail_width'], MagicNumber['thumbnail_height'], self.width, self.height)
+    tw, th = PettanImager.thumbnail_size(self.width, self.height)
     {:src => self.url, :width => tw, :height => th}
   end