OSDN Git Service

fix:server
[pettanr/pettanr.git] / app / models / author.rb
index 0ea5aab..594e36c 100644 (file)
@@ -5,10 +5,8 @@ class Author < Peta::Owner
   has_many :comics
   has_many :sheets
   has_many :panels
-  belongs_to :working_panel, :class_name => "Panel"
   
   validates :name, :presence => true, :length => {:maximum => 30}
-  validates :working_panel_id, :numericality => {:allow_nil => true}
   validates :user_id, :numericality => true, :existence => {:both => false}
   
   def supply_default
@@ -16,10 +14,6 @@ class Author < Peta::Owner
     self.user_id = nil
   end
   
-  def working?
-    self.working_panel_id and self.working_panel
-  end
-  
   def self.show_opt
     {:include => {:user => {:artist => {}}} }
   end