- def self.show_json_opt
- {:include => {:panel => {:include => {:author => {}}}, :picture => {:include => {:artist => {}, :license => {}}} }}
- end
-
- def store operators
- if self.new_record?
- self.panel.panel_pictures.build(self.attributes)
- else
- self.panel.panel_pictures.each do |panel_picture|
- next unless panel_picture == self
- attr = self.attributes
- attr.delete 'id'
- panel_picture.attributes = attr
- break
- end
- end
- self.panel.store({}, operators)
- end
-
- def remove operators
- self.panel.remove_element(self, operators)
- end
-