Sha256: 17b787cb6c3d873096ef5e6bdf2634f85f971b64cc58e8cae6e8ff04e20dc764
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 Bytes
Contents
class UiJobWizardController < ::Api::V2::BaseController def categories job_categories = resource_scope .search_for("job_category ~ \"#{params[:search]}\"") .select(:job_category).distinct .reorder(:job_category) .pluck(:job_category) render :json => {:job_categories =>job_categories} end def template job_template = JobTemplate.authorized.find(params[:id]) render :json => { :job_template => job_template, :effective_user => job_template.effective_user, } end def resource_name(nested_resource = nil) nested_resource || 'job_template' end def resource_class JobTemplate end def action_permission :view_job_templates end end
Version data entries
3 entries across 3 versions & 1 rubygems