OSDN Git Service

fix:server
[pettanr/pettanr.git] / lib / peta / element.rb
index cf0bd70..6542e9b 100644 (file)
@@ -67,23 +67,6 @@ module Peta
       {}
     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