OSDN Git Service

fix foreign_filter list includes
[pettanr/pettanr.git] / app / models / author.rb
index 63940e0..8560076 100644 (file)
@@ -1,8 +1,8 @@
-class Author < Pettanr::Owner
+class Author < Peta::Owner
+  load_manifest
   belongs_to :user
   has_many :scrolls
   has_many :comics
-  has_many :stories
   has_many :sheets
   has_many :panels
   belongs_to :working_panel, :class_name => "Panel"
@@ -11,9 +11,6 @@ class Author < Pettanr::Owner
   validates :working_panel_id, :numericality => {:allow_nil => true}
   validates :user_id, :numericality => true, :existence => {:both => false}
   
-  @@valid_encode_columns += ['name']
-  # @@visible_count_options = {}
-  
   def supply_default
     self.name = 'no name' if self.name.blank?
   end