app/models/site_map.rb in slices-1.0.5 vs app/models/site_map.rb in slices-2.0.0

- old
+ new

@@ -6,12 +6,10 @@ def permalink '{root}' end - private - def self.set_children_for(parent_id, data) parent = Page.find(parent_id) data.each_with_index do |child_data, i| child = Page.find(child_data['id']) child.position = i @@ -19,6 +17,7 @@ child.path = child.generate_path child.save! set_children_for(child_data['id'], child_data['children']) if child_data['children'] end end + private_class_method :set_children_for end