Class: Layout::ModalErrorComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/layout/modal_error_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj: nil, body: nil) ⇒ ModalErrorComponent

Returns a new instance of ModalErrorComponent.



4
5
6
7
8
# File 'app/components/layout/modal_error_component.rb', line 4

def initialize(obj: nil, body: nil)
  super
  @obj = obj
  @body = body
end