Sha256: 158f18a7be10ae56126946ba225afce5ee7ed276b98d0ef8d2b93bd9e93e458c
Contents?: true
Size: 692 Bytes
Versions: 6
Compression:
Stored size: 692 Bytes
Contents
module Refinery module Jobs module Admin class JobApplicationsController < Refinery::AdminController before_action :find_job, only: [:index, :destroy] crudify :'refinery/jobs/job_application' def index if @job @job_applications = @job.job_applications.paginate( page: params[:page] ) end end def destroy Refinery::Jobs::JobApplication.find(params[:id]).destroy redirect_to refinery.jobs_admin_job_job_applications_path(@job) end protected def find_job @job = Refinery::Jobs::Job.find params[:job_id] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems