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