Class: SolidQueueMonitor::ApplicationController
- Inherits:
-
Object
- Object
- SolidQueueMonitor::ApplicationController
show all
- Includes:
- ActionController::Flash, ActionController::HttpAuthentication::Basic::ControllerMethods
- Defined in:
- app/controllers/solid_queue_monitor/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#set_flash_message(message, type) ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'app/controllers/solid_queue_monitor/application_controller.rb', line 18
def set_flash_message(message, type)
@flash_message = message
@flash_type = type
begin
flash[:notice] = message if type == :success
flash[:alert] = message if type == :error
rescue StandardError
end
end
|