OSDN Git Service

t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git] / app / models / resource_picture.rb
index 8b5bf5f..d22162e 100644 (file)
@@ -69,11 +69,15 @@ class ResourcePicture < ActiveRecord::Base
     ResourcePicture.resize(rimg.to_blob, tw, th).to_blob
   end
   
-  def opt_img_tag
+  def tmb_opt_img_tag
     tw, th = PettanImager.thumbnail_size(self.width, self.height)
     {:src => self.url, :width => tw, :height => th}
   end
   
+  def opt_img_tag
+    {:src => self.url('full'), :width => self.width, :height => self.height}
+  end
+  
   def self.default_page_size
     25
   end