OSDN Git Service

fix leaf view
[pettanr/pettanr.git] / lib / peta / leaf.rb
index 16afd72..59b84a5 100644 (file)
@@ -45,6 +45,10 @@ module Peta
       ['scroll_panels.scroll_id = ?', cid]
     end
     
+    def self.play_list_order
+      self.table_name + '.t'
+    end
+    
     def self.play_list scroll, author, offset = 0, limit = ScrollPanel.default_panel_size
       ScrollPanel.where(self.play_list_where(scroll.id)).includes(ScrollPanel.list_opt).order('scroll_panels.t').offset(offset).limit(limit)
     end