OSDN Git Service

fix form helper
[pettanr/pettanr.git] / app / models / story_sheet.rb
index f6e877c..3650fe5 100644 (file)
@@ -1,4 +1,5 @@
-class StorySheet < Peta::Content
+class StorySheet < Peta::Element
+  load_manifest
   belongs_to :author
   belongs_to :story
   belongs_to :sheet
@@ -8,8 +9,9 @@ class StorySheet < Peta::Content
   validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
   validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
   
-  def self.owner_model
-    Story
+  def tag_attributes column = nil, opt = {}
+    {
+    }
   end
   
   def supply_default