OSDN Git Service

fix license picture
[pettanr/pettanr.git] / app / models / author.rb
index b8c236b..0ea5aab 100644 (file)
@@ -13,6 +13,7 @@ class Author < Peta::Owner
   
   def supply_default
     self.name = 'no name' if self.name.blank?
+    self.user_id = nil
   end
   
   def working?
@@ -23,8 +24,4 @@ class Author < Peta::Owner
     {:include => {:user => {:artist => {}}} }
   end
   
-  def self.show_json_opt
-    {:include => {:user => {:artist => {}}} }
-  end
-  
 end