OSDN Git Service

pass test
[pettanr/pettanr.git] / app / models / speech_balloon.rb
index ed857be..05b280b 100644 (file)
@@ -7,7 +7,7 @@ class SpeechBalloon < ActiveRecord::Base
   accepts_nested_attributes_for :balloons
   accepts_nested_attributes_for :speeches
   
-#  validates :panel_id, :presence => true, :numericality => true, :existence => true
+  validates :panel_id, :numericality => {:allow_blank => true}
   validates :speech_balloon_template_id, :presence => true, :numericality => true, :existence => true
   validates :classname, :presence => true, :length => {:maximum => 50}
   validates :z, :presence => true, :numericality => {:greater_than => 0}