app/lib/actions/entry_action.rb in foreman-tasks-0.10.4 vs app/lib/actions/entry_action.rb in foreman-tasks-0.10.6

- old
+ new

@@ -26,10 +26,11 @@ # It also locks the resource on the actions defined in +resource_locks+ method. # # The additional args can include more resources and/or a hash # with more data describing the action that should appear in the # action's input. - def action_subject(resource, *additional_args) # TODO redo as a middleware + # TODO redo as a middleware + def action_subject(resource, *additional_args) Type! resource, ForemanTasks::Concerns::ActionSubject input.update serialize_args(resource, *resource.all_related_resources, *additional_args) if resource.is_a? ActiveRecord::Base if resource_locks == :exclusive