app/models/foreman_tasks/task.rb in foreman-tasks-1.1.3 vs app/models/foreman_tasks/task.rb in foreman-tasks-1.2.0

- old
+ new

@@ -68,9 +68,13 @@ joins(:locks).where(:"foreman_tasks_locks.resource_id" => resource.id, :"foreman_tasks_locks.resource_type" => resource.class.name) end) scope :for_action_types, (->(action_types) { where('foreman_tasks_tasks.label IN (?)', Array(action_types)) }) + class Jail < Safemode::Jail + allow :started_at, :ended_at, :result, :state, :label, :main_action + end + def input {} end def output