OSDN Git Service

fix anything
[pettanr/pettanr.git] / app / models / scroll_panel.rb
index 8d9f422..7207179 100644 (file)
@@ -20,12 +20,7 @@ class ScrollPanel < Peta::Leaf
     self.author_id = operators.author.id
   end
   
-  def visible? operators
-    return false unless super
-    self.owner_model.visible? operators
-  end
-  
-  def self.list_order
+  def self.public_list_order
     'scroll_panels.updated_at desc'
   end
   
@@ -33,6 +28,14 @@ class ScrollPanel < Peta::Leaf
     'scrolls.visible > 0'
   end
   
+  def self.by_author_list_includes
+    {
+      :scroll => {
+        :author => {}
+      }
+    }
+  end
+  
   def self.play_list_where cid
     ['scroll_panels.scroll_id = ?', cid]
   end