OSDN Git Service

Merge branch 'v06sheet' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06sheet
[pettanr/pettanr.git] / app / controllers / speech_balloons_controller.rb
index 03be3ac..bc5aea8 100644 (file)
@@ -50,6 +50,7 @@ class SpeechBalloonsController < ApplicationController
   end
 
   def new
+    raise Pettanr::NotWork unless @author.working_panel
     @speech_balloon_template = SpeechBalloonTemplate.show params[:speech_balloon_template_id], @author
     
     @panel = Panel.edit(@author.working_panel, @author)
@@ -82,6 +83,7 @@ class SpeechBalloonsController < ApplicationController
   end
 
   def create
+    raise Pettanr::NotWork unless @author.working_panel
     SpeechBalloon.fold_extend_settings params
     @panel = Panel.edit(@author.working_panel, @author)
     @speech_balloon = SpeechBalloon.new