Class: ForemanTasks::RecurringLogicsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ForemanTasks::RecurringLogicsController
- Includes:
- Foreman::Controller::AutoCompleteSearch
- Defined in:
- app/controllers/foreman_tasks/recurring_logics_controller.rb
Instance Method Summary collapse
- #cancel ⇒ Object
- #clear_cancelled ⇒ Object
- #controller_name ⇒ Object
- #disable ⇒ Object
- #enable ⇒ Object
- #index ⇒ Object
- #resource_class ⇒ Object
- #show ⇒ Object
Instance Method Details
#cancel ⇒ Object
22 23 24 25 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 22 def cancel @recurring_logic.cancel redirect_to :action => :index end |
#clear_cancelled ⇒ Object
27 28 29 30 31 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 27 def clear_cancelled scope = resource_base.search_for('state=cancelled') scope.destroy_all redirect_to :action => :index end |
#controller_name ⇒ Object
33 34 35 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 33 def controller_name 'foreman_tasks_recurring_logics' end |
#disable ⇒ Object
18 19 20 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 18 def disable change_enabled(false) end |
#enable ⇒ Object
14 15 16 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 14 def enable change_enabled(true) end |
#index ⇒ Object
7 8 9 10 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 7 def index @errors = params[:errors] @recurring_logics = filter(resource_base) end |
#resource_class ⇒ Object
37 38 39 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 37 def resource_class ::ForemanTasks::RecurringLogic end |
#show ⇒ Object
12 |
# File 'app/controllers/foreman_tasks/recurring_logics_controller.rb', line 12 def show; end |