OSDN Git Service

clean
[pettanr/pettanr.git] / app / models / ground_picture.rb
index d0e9833..af2940f 100644 (file)
@@ -89,18 +89,6 @@ class GroundPicture < Peta::Element
     'panels.publish > 0'
   end
   
-  def self.list_order
-    'ground_pictures.updated_at desc'
-  end
-  
-  def self.list_opt
-    {:panel => {:author => {}}, :picture => {:artist => {}, :license => {}} }
-  end
-  
-  def self.list_json_opt
-    {:include => {:panel => {:include => {:author => {}}}, :picture => {:include => {:artist => {}, :license => {}}} }}
-  end
-  
   def self.show_opt
     {:include => {:panel => {:author => {}}, :picture => {:artist => {}, :license => {}}}}
   end
@@ -109,25 +97,6 @@ class GroundPicture < Peta::Element
     {:include => {:panel => {:include => {:author => {}}}, :picture => {:include => {:artist => {}, :license => {}}} }}
   end
   
-  def store operators
-    if self.new_record?
-      self.panel.ground_pictures.build(self.attributes)
-    else
-      self.panel.ground_pictures.each do |ground_picture|
-        next unless ground_picture == self
-        attr = self.attributes
-        attr.delete 'id'
-        ground_picture.attributes = attr
-        break
-      end
-    end
-    self.panel.store({}, operators)
-  end
-  
-  def remove operators
-    self.panel.remove_element(self, operators)
-  end
-  
   def scenario
     if caption.blank?
       ''