Exception: ViewComponentContrib::WrapperComponent::DoubleRenderError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/view_component_contrib/wrapper_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(component) ⇒ DoubleRenderError

Returns a new instance of DoubleRenderError.



10
11
12
# File 'lib/view_component_contrib/wrapper_component.rb', line 10

def initialize(component)
  super("A child component could only be rendered once within a wrapper: #{component}")
end