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