lib/internal_affairs/pending_operation.rb in internal-affairs-1.1.1 vs lib/internal_affairs/pending_operation.rb in internal-affairs-1.1.2

- old
+ new

@@ -26,9 +26,13 @@ private def load_target return nil if target_class.nil? - target_class.constantize.load_from_operation_serialized_attributes(**target_attributes) + if target_attributes.is_a? Hash + target_class.constantize.load_from_operation_serialized_attributes(**target_attributes) + else + target_class.constantize.load_from_operation_serialized_attributes(target_attributes) + end end end end