OSDN Git Service

t#29620:json output include child
[pettanr/pettanr.git] / app / models / panel_picture.rb
index 772f9a0..013ae96 100644 (file)
@@ -60,7 +60,7 @@ class PanelPicture < ActiveRecord::Base
   end
   
   def self.list_json_opt
-    {:include => {:panel => {:author => {}}, :picture => {:artist => {}, :license => {}}}}
+    {:include => {:panel => {:include => {:author => {}}}, :picture => {:include => {:artist => {}, :license => {}}} }}
   end
   
   def self.mylist au, page = 1, page_size = Author.default_panel_picture_page_size