app/lib/actions/base.rb in foreman-tasks-0.10.4 vs app/lib/actions/base.rb in foreman-tasks-0.10.6
- old
+ new
@@ -1,6 +1,8 @@
module Actions
class Base < Dynflow::Action
+ middleware.use ::Actions::Middleware::RailsExecutorWrap if Rails::VERSION::MAJOR > 4
+
def task
@task ||= ::ForemanTasks::Task::DynflowTask.where(:external_id => execution_plan_id).first!
end
# This method says what data form input gets into the task details in Rest API