Class: Jav::FlashAlertsComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ApplicationHelper
Defined in:
app/components/jav/flash_alerts_component.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#a_button, #a_link, #button_classes, #decode_filter_params, #empty_state, #encode_filter_params, #frame_id, #get_model_class, #input_classes, #mount_path, #render_license_warning, #render_license_warnings, #root_path_without_url, #svg, #white_panel_classes

Constructor Details

#initialize(flashes: []) ⇒ FlashAlertsComponent

Returns a new instance of FlashAlertsComponent.



6
7
8
9
# File 'app/components/jav/flash_alerts_component.rb', line 6

def initialize(flashes: [])
  super
  @flashes = flashes
end