Sha256: f93b27ce19924f1b6458e1e4355f8eae936f7f6a9f13ebac7fb4d8d892d4758e
Contents?: true
Size: 640 Bytes
Versions: 8
Compression:
Stored size: 640 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 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]) end end end
Version data entries
8 entries across 8 versions & 1 rubygems