Sha256: e582bb9331de1a84facc74ad3f2a462bdf55bf19f84b84af2a7569708ab25d71

Contents?: true

Size: 195 Bytes

Versions: 8

Compression:

Stored size: 195 Bytes

Contents

class ArrayComponent < AtomicAssets::Component
  def render
    children.map(&:render).reduce(:+)
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atomic_cms-0.4.0 app/components/array_component.rb
atomic_cms-0.3.3 app/components/array_component.rb
atomic_cms-0.3.2 app/components/array_component.rb
atomic_cms-0.3.1 app/components/array_component.rb
atomic_cms-0.3.0 app/components/array_component.rb
atomic_cms-0.2.5 app/components/array_component.rb
atomic_cms-0.2.3 app/components/array_component.rb
atomic_cms-0.2.2 app/components/array_component.rb