OSDN Git Service

t#29620:json output include child
[pettanr/pettanr.git] / app / models / ground_picture.rb
index c98e9dd..ebb5959 100644 (file)
@@ -46,7 +46,7 @@ class GroundPicture < 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_ground_picture_page_size