Class: Amalgam::Tree::Exportable

Inherits:
Object
  • Object
show all
Defined in:
lib/amalgam/tree/exportable.rb

Class Method Summary collapse

Class Method Details

.export(attributes = []) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/amalgam/tree/exportable.rb', line 4

def self.export(attributes = [])
  tmp_hash = []
  @pages = Page.all
  children_nodes.each do |node|
    render_tree node, tmp_hash, attributes
  end
  tmp_hash
end