OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / app / models / speech_balloon.rb
index ad725f6..8e349e1 100644 (file)
@@ -8,7 +8,7 @@ class SpeechBalloon < ActiveRecord::Base
   accepts_nested_attributes_for :speeches
   
   validates :panel_id, :numericality => {:allow_blank => true}
-  validates :speech_balloon_template_id, :presence => true, :numericality => true, :existence => true
+  validates :speech_balloon_template_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :classname, :presence => true, :length => {:maximum => 50}
   validates :z, :presence => true, :numericality => {:greater_than => 0}
   validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}