Class: ArrayComponent
- Inherits:
-
AtomicAssets::Component
- Object
- AtomicAssets::Component
- ArrayComponent
- 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
#edit ⇒ Object
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 |
#render ⇒ Object
2 3 4 |
# File 'app/components/array_component.rb', line 2 def render children.map(&:render).reduce(:+) end |