X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fmodels%2Fspeech.rb;h=2beec5a4fde7c3deb532a8f2cea5e7c65d4fdfb4;hp=68b77f79613487ce05e1dd307823a3d2bd55a2a5;hb=refs%2Fheads%2Fv03_test;hpb=d70238912c25c4102d986b39240e1d6e3502db5c diff --git a/app/models/speech.rb b/app/models/speech.rb index 68b77f79..2beec5a4 100644 --- a/app/models/speech.rb +++ b/app/models/speech.rb @@ -1,7 +1,7 @@ class Speech < ActiveRecord::Base belongs_to :speech_balloon -# validates :speech_balloon_id, :presence => true, :numericality => true, :existence => true + validates :speech_balloon_id, :numericality => {:allow_blank => true} validates :x, :presence => true, :numericality => true validates :y, :presence => true, :numericality => true validates :width, :presence => true, :numericality => true, :natural_number => true