OSDN Git Service

fix: heroku
authoryasushiito <yas@pen-chan.jp>
Tue, 25 Aug 2015 09:40:18 +0000 (18:40 +0900)
committeryasushiito <yas@pen-chan.jp>
Tue, 25 Aug 2015 09:40:18 +0000 (18:40 +0900)
app/assets/javascripts/views/resource_picture_pictures/summary.js.coffee
db/migrate/20140612222717_fix_extend_system_data.rb
lib/peta/leaf.rb

index b560dbe..f60e13b 100644 (file)
@@ -2,7 +2,6 @@ class Pettanr.Views.ResourcePicturePicture.Summary extends Pettanr.View.Summary
   \r
   initialize: (options) ->\r
     super(options)\r
-    @item = options.item\r
     @load()\r
   \r
   load: () ->\r
index 8582368..ee4e5cc 100644 (file)
@@ -5,7 +5,6 @@ class FixExtendSystemData < ActiveRecord::Migration
       if balloon.speech_balloon_template_module_name == 'noname'
         balloon.speech_balloon_template_id = sbt.id
         balloon.speech_balloon_template_module_name = sbt.module_name
-        p balloon
         balloon.boosts 'post'
       end
       balloon.save!
index f7a2b10..26cd8a6 100644 (file)
@@ -181,9 +181,9 @@ module Peta
       res = false
       self.class.transaction do
         # renumber t
-        self.class.update_all('t = t - 1', 
+        self.class.where(
           [self.binder_key + ' = ? and (t > ?)', self.binder_id, self.t]
-        )
+        ).update_all('t = t - 1')
         res = super
         raise ActiveRecord::Rollback unless res
       end