OSDN Git Service

fix peta test
[pettanr/pettanr.git] / app / models / comic_story.rb
index ddf6d74..66c2acc 100644 (file)
@@ -6,7 +6,6 @@ class ComicStory < Peta::Leaf
   
   validates :comic_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :story_id, :presence => true, :numericality => true, :existence => {:both => false}
-  validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
   
   def supply_default
@@ -17,7 +16,6 @@ class ComicStory < Peta::Leaf
   
   def overwrite operators
     return false unless operators.author
-    self.author_id = operators.author.id
   end
   
   def disp_t