OSDN Git Service

fix model
[pettanr/pettanr.git] / app / models / scroll.rb
index 395a84f..4c1d21a 100644 (file)
@@ -1,14 +1,11 @@
-class Scroll < Pettanr::Content
+class Scroll < Peta::Content
+  load_manifest
   has_many :scroll_panels
   belongs_to :author
   
   validates :title, :presence => true, :length => {:maximum => 100}
   validates :visible, :presence => true, :numericality => true, :inclusion => {:in => 0..1}
   validates :author_id, :presence => true, :numericality => true, :existence => {:both => false}
-
-  def self.valid_encode_columns
-    super + ['title']
-  end
   
   def supply_default
     self.visible = 0 if self.visible.blank?