Sha256: dc16e12ffcc6a41cf96331f10317a07c1fcfb485230e467f98e3137d71e44b2a

Contents?: true

Size: 753 Bytes

Versions: 20

Compression:

Stored size: 753 Bytes

Contents

module ForemanTasks
  class RecurringLogicsController < ::ApplicationController
    before_action :find_recurring_logic, :only => [:show, :cancel]

    def index
      @recurring_logics = filter(resource_base)
    end

    def show; end

    def cancel
      @recurring_logic.cancel
      redirect_to :action => :index
    end

    def controller_name
      'foreman_tasks_recurring_logics'
    end

    def resource_class
      ::ForemanTasks::RecurringLogic
    end

    private

    def find_recurring_logic
      @recurring_logic ||= ::ForemanTasks::RecurringLogic.find(params[:id])
    end

    def filter(scope)
      scope.search_for(params[:search])
           .paginate(:page => params[:page], :per_page => params[:per_page])
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foreman-tasks-0.11.3 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.13.4 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.13.3 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.13.2 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.13.1 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.13.0 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.12.2 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.11.2 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.12.1 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.12.0 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.11.1 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.9 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.11.0 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.8 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.7 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.6 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.4 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.3 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.2 app/controllers/foreman_tasks/recurring_logics_controller.rb
foreman-tasks-0.10.1 app/controllers/foreman_tasks/recurring_logics_controller.rb