Sha256: 0f98aa959bdcbe2a83570dffa607517fc01728fecf12f6ec43594531fc708c23

Contents?: true

Size: 427 Bytes

Versions: 20

Compression:

Stored size: 427 Bytes

Contents

module Recruiter
  class JobsController < ::RecruiterController
    respond_to :html, :json

    def index
      @jobs = ::Recruiter::Filters::JobFilter.filter(filter_params).
        open.page(page).per(per_page)

      respond_with(@jobs)
    end

    def show
      @job = Job.find(params[:id])
      respond_with(@job)
    end

    private

    def filter_params
      params.select { |k, v| v.present? }
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
recruiter-1.1.12 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.11 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.10 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.9 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.8 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.7 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.6 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.5 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.4 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.3 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.2 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.1 app/controllers/recruiter/jobs_controller.rb
recruiter-1.1.0 app/controllers/recruiter/jobs_controller.rb
recruiter-1.0.0 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.5 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.4 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.3 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.2 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.1 app/controllers/recruiter/jobs_controller.rb
recruiter-0.1.0 app/controllers/recruiter/jobs_controller.rb