Class: ArrayComponent

Inherits:
AtomicAssets::Component show all
Defined in:
app/components/array_component.rb

Instance Method Summary collapse

Methods included from AtomicCms::Editor

#children, #edit_array, included, #render_child_array

Instance Method Details

#editObject



6
7
8
9
10
# File 'app/components/array_component.rb', line 6

def edit
  rtn = cms_fields
  rtn << render_child_array
  rtn.html_safe
end

#renderObject



2
3
4
# File 'app/components/array_component.rb', line 2

def render
  children.map(&:render).reduce(:+)
end