{}
end
- def self.panelize elements_attributes
- elements_attributes = [elements_attributes] unless elements_attributes.is_a?(Array)
- hash = {}
- index = 0
- elements_attributes.each do |element_attributes|
- hash[self.to_s.tableize + '_attributes'] ||= {}
- n = if element_attributes['id']
- element_attributes['id'].to_s
- else
- index += 1
- 'new' + index.to_s
- end
- hash[self.to_s.tableize + '_attributes'][n] = element_attributes
- end
- hash
- end
-
def has_picture?
false
end