OSDN Git Service

fix extend_column_name
[pettanr/pettanr.git] / app / models / scroll_panel.rb
index 9ff9fc2..356efd0 100644 (file)
@@ -1,4 +1,5 @@
-class ScrollPanel < Pettanr::Content
+class ScrollPanel < Peta::Element
+  load_manifest
   belongs_to :author
   belongs_to :panel
   belongs_to :scroll
@@ -8,8 +9,9 @@ class ScrollPanel < Pettanr::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
-    Scroll
+  def tag_attributes column = nil, opt = {}
+    {
+    }
   end
   
   def supply_default