OSDN Git Service

fix filter include
[pettanr/pettanr.git] / app / models / author.rb
index 1c88fba..8560076 100644 (file)
@@ -1,4 +1,5 @@
-class Author < Pettanr::Owner
+class Author < Peta::Owner
+  load_manifest
   belongs_to :user
   has_many :scrolls
   has_many :comics
@@ -10,28 +11,6 @@ class Author < Pettanr::Owner
   validates :working_panel_id, :numericality => {:allow_nil => true}
   validates :user_id, :numericality => true, :existence => {:both => false}
   
-  cattr_reader :singular, :plural
-  @@singular = 'Author'
-  @@plural = 'Authors'
-  def self.item_name
-    self.singular.underscore
-  end
-  
-  def item_name
-    self.class.item_name
-  end
-  
-  def self.path_name with_engine = false
-    self.plural.underscore
-  end
-  
-  def path_name 
-    self.class.path_name
-  end
-  
-  @@valid_encode_columns += ['name']
-  # @@visible_count_options = {}
-  
   def supply_default
     self.name = 'no name' if self.name.blank?
   end