Class: JobNotifier::JobsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- JobNotifier::JobsController
- Defined in:
- app/controllers/job_notifier/jobs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/job_notifier/jobs_controller.rb', line 5 def index render json: Job.unnotified_by_identifier(params[:identifier]) end |
#update ⇒ Object
9 10 11 12 |
# File 'app/controllers/job_notifier/jobs_controller.rb', line 9 def update Job.notify_by_identifier(params[:identifier]) head :no_content end |