Class: SolidQueueMonitor::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- 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
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/controllers/solid_queue_monitor/application_controller.rb', line 12
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
|