OSDN Git Service

test speech balloon extended
[pettanr/pettanr.git] / app / models / story_sheet.rb
index d1a3961..6d02cd0 100644 (file)
@@ -20,12 +20,7 @@ class StorySheet < 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_where
+  def self.public_list_where
     'stories.visible > 0'
   end
   
@@ -59,6 +54,16 @@ class StorySheet < Peta::Leaf
     Kaminari.paginate_array(Array.new(StorySheet.where(self.play_sheet_where(story.id)).includes(StorySheet.list_opt).count, nil)).page(page).per(1)
   end
   
+  def self.by_author_list_includes
+    {
+      :story => {
+        :comic => {
+          :author => {}
+        }
+      }
+    }
+  end
+  
   def self.list_opt
     {
       :author => {},