Sha256: ec62ff56243d36615c24b8a596e66e31e43d6f241163cfd84ef43f7141885987

Contents?: true

Size: 346 Bytes

Versions: 6

Compression:

Stored size: 346 Bytes

Contents

module Recruiter
  class JobsController < ::RecruiterController
    def index
      @jobs = ::Recruiter::Filters::JobFilter.filter(filter_params).
        open.page(page).per(per_page)
    end

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

    private

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
recruiter-0.0.7 app/controllers/recruiter/jobs_controller.rb
recruiter-0.0.6 app/controllers/recruiter/jobs_controller.rb
recruiter-0.0.5 app/controllers/recruiter/jobs_controller.rb
recruiter-0.0.4 app/controllers/recruiter/jobs_controller.rb
recruiter-0.0.3 app/controllers/recruiter/jobs_controller.rb
recruiter-0.0.2 app/controllers/recruiter/jobs_controller.rb