A platform for community discussion. Free, open, simple.
DEV: fixes spec failing with ruby 3.2.1 (#20356)
Joffrey JAFFEUX39be3cb619ce
diff --git a/plugins/chat/app/services/base.rb b/plugins/chat/app/services/base.rbindex 4123d1b3537..e301d1041bf 100644--- a/plugins/chat/app/services/base.rb+++ b/plugins/chat/app/services/base.rb@@ -407,18 +407,19 @@ module Chat@context = Context.build(initial_context.merge(__steps__: self.class.steps))end- private-+ # @!visibility privatedef runrun!rescue Failure => exceptionraise if context.object_id != exception.context.object_idend+ # @!visibility privatedef run!self.class.steps.each { |step| step.call(self, context) }end+ # @!visibility privatedef fail!(message)step_name = caller_locations(1, 1)[0].labelcontext["result.step.#{step_name}"].fail(error: message)