OSDN Git Service

temp
[pettanr/pettanr.git] / app / models / author.rb
index fda9f34..2ea5368 100644 (file)
@@ -10,20 +10,8 @@ class Author < Pettanr::Owner
   validates :working_panel_id, :numericality => {:allow_nil => true}
   validates :user_id, :numericality => true, :existence => {:both => false}
   
-  def self.singular
-    'Author'
-  end
-  
-  def self.plural
-    'Authors'
-  end
-  
-  def self.owner_type
-    :author
-  end
-  
   def self.valid_encode_columns
-    super.merge ['name']
+    super + ['name']
   end
   
   def supply_default