Class: SourceMonitor::SourceFetchesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SourceMonitor::SourceFetchesController
- Includes:
- SetSource, SourceTurboResponses
- Defined in:
- app/controllers/source_monitor/source_fetches_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 |
# File 'app/controllers/source_monitor/source_fetches_controller.rb', line 10 def create SourceMonitor::Fetching::FetchRunner.enqueue(@source.id) render_fetch_enqueue_response("Fetch has been enqueued and will run shortly.") rescue StandardError => error handle_fetch_failure(error) end |