app/lib/actions/base.rb in foreman-tasks-0.13.1 vs app/lib/actions/base.rb in foreman-tasks-0.13.2
- old
+ new
@@ -1,7 +1,7 @@
module Actions
class Base < Dynflow::Action
- middleware.use ::Actions::Middleware::RailsExecutorWrap if Rails::VERSION::MAJOR > 4
+ middleware.use ::Actions::Middleware::RailsExecutorWrap
def task
@task ||= ::ForemanTasks::Task::DynflowTask.where(:external_id => execution_plan_id).first!
end