Sha256: 6effee9b5aad58ff4250636cd818a36696b1675bda34759d67c556935072d54b

Contents?: true

Size: 332 Bytes

Versions: 7

Compression:

Stored size: 332 Bytes

Contents

module JobNotifier
  class JobsController < ActionController::Base
    skip_before_action :verify_authenticity_token, raise: false

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

    def update
      Job.notify_by_identifier(params[:identifier])
      head :no_content
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
job_notifier-3.0.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-2.0.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.5.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.4.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.3.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.2.4 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.2.3 app/controllers/job_notifier/jobs_controller.rb