['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