Sha256: e143916e0eff6a3e68e7a03ae1ca54ae381350973a0ae7bc99502ff3201541f7
Contents?: true
Size: 492 Bytes
Versions: 9
Compression:
Stored size: 492 Bytes
Contents
module ForemanTasks class TasksController < ::ApplicationController include Foreman::Controller::AutoCompleteSearch def show @task = Task.find(params[:id]) end def index params[:order] ||= "started_at DESC" @tasks = Task.search_for(params[:search], :order => params[:order]).paginate(:page => params[:page]) end # we need do this to make the Foreman helpers working properly def controller_name "foreman_tasks_tasks" end end end
Version data entries
9 entries across 9 versions & 1 rubygems