Class: JobNotifier::JobsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/job_notifier/jobs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/job_notifier/jobs_controller.rb', line 5

def index
  render json: Job.unnotified_by_identifier(params[:identifier])
end

#updateObject



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