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

Version Path
foreman-tasks-0.2.2 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.2.1 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.2.0 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.5 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.4 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.3 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.2 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.1 app/controllers/foreman_tasks/tasks_controller.rb
foreman-tasks-0.1.0 app/controllers/foreman_tasks/tasks_controller.rb