OSDN Git Service

fix:balloon edit
[pettanr/pettanr.git] / app / models / resource_picture.rb
index 36d57e5..7a08169 100644 (file)
@@ -230,4 +230,13 @@ class ResourcePicture < Peta::Content
     "#{self.license_group_module_name.tableize}/attributes/full_credit"
   end
   
+  def self.remake_all
+    ResourcePicture.find(:all).each do |resource_picture|
+      resource_picture.boosts 'post'
+      full = resource_picture.restore 'full'
+      imager = PettanImager.load full
+      resource_picture.store_picture_with_gif(imager)
+    end
+  end
+  
 end