OSDN Git Service

fix read permission for element
[pettanr/pettanr.git] / app / models / comic.rb
index 92f1568..5204201 100644 (file)
@@ -1,5 +1,6 @@
 #コミック
 class Comic < Peta::Content
+  load_manifest
   has_many :stories, :order => 't'
   belongs_to :author
   
@@ -7,10 +8,6 @@ class Comic < Peta::Content
   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', 'description']
-  end
-  
   def self.visible_count_options
     {:conditions => 'visible > 0'}
   end