OSDN Git Service

fix: local manifest/add helper
[pettanr/pettanr.git] / app / assets / javascripts / work / profilers.js.coffee.erb
index f06b26e..517f76a 100644 (file)
         'speech_balloon_template',\r
       ],\r
       has_one: [\r
-        'balloon.by_speech_balloon',\r
-        'speech.by_speech_balloon',\r
+        'balloons.by_speech_balloon',\r
+        'speeches.by_speech_balloon',\r
       ],\r
     }, \r
   },\r
         'artist',\r
       ],\r
       has_one: [\r
-        'resource_picture.by_original_picture',\r
       ],\r
     }, \r
   },\r
       'artist_id', \r
       'license_id', \r
       'md5', \r
-      'artist_name', \r
+      'system_picture_id', \r
       'license_group_settings', \r
       'credit_picture_settings', \r
       'license_settings', \r
         'license',\r
         'artist',\r
       ],\r
+      has_one: [\r
+        'resource_picture_pictures.by_picture', \r
+      ],\r
     }, \r
   },\r
   resource_picture: {\r
       'height', \r
       'filesize', \r
       'artist_id', \r
+      'license_group_id', \r
       'license_id', \r
       'md5', \r
-      'artist_name', \r
+      'system_picture_id', \r
       'license_group_settings', \r
       'credit_picture_settings', \r
       'license_settings', \r
     ],\r
     associations: {\r
       belongs_to: [\r
+        'license_group',\r
         'license',\r
         'artist',\r
       ],\r
+      has_many: [\r
+        'resource_picture_pictures.by_resource_picture', \r
+      ],\r
+    }, \r
+  },\r
+  resource_picture_picture: {\r
+    column_names: [\r
+      'original_picture_id', \r
+      'resource_picture_id', \r
+      'picture_id', \r
+    ],\r
+    associations: {\r
+      belongs_to: [\r
+        'original_picture',\r
+        'resource_picture',\r
+        'picture',\r
+      ],\r
     }, \r
   },\r
   speech_balloon_template: {\r
     },\r
     associations: {\r
       has_many: [\r
+        'resource_pictures.by_license_group', \r
         'licenses.by_license_group', \r
       ],\r
     }, \r