OSDN Git Service

temp
[pettanr/pettanr.git] / app / models / original_picture.rb
index 28bf7b6..db52744 100644 (file)
@@ -52,6 +52,14 @@ class OriginalPicture < ActiveRecord::Base
     {:src => self.url, :width => tw, :height => th}
   end
   
+  def symbol_option
+    self.tmb_opt_img_tag
+  end
+  
+  def revision
+    self.history.first.revision
+  end
+  
   def unpublished?
     self.published_at == nil and self.stopped_at == nil
   end