From 68a0ae32480057dcbf76db3c3bab824f8a7d9560 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 28 Nov 2023 18:13:31 +0100 Subject: [PATCH] Remove temporary monkey patch for Mnemosyne --- config/initializers/monkey_patches.rb | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/config/initializers/monkey_patches.rb b/config/initializers/monkey_patches.rb index fcb0e999..61c405d5 100644 --- a/config/initializers/monkey_patches.rb +++ b/config/initializers/monkey_patches.rb @@ -17,22 +17,3 @@ module WillPaginate end end end - -# Required until Rails 7.1 is officially supported. -# See https://github.com/mnemosyne-mon/mnemosyne-ruby/pull/70 -module Mnemosyne - class Trace - def attach_error(error) - case error - when ActionDispatch::ExceptionWrapper - @errors << Error.new(error.exception) - when Exception - @errors << Error.new(error) - when String - @errors << Error.new(RuntimeError.new(error)) - else - raise ArgumentError.new "Invalid error type: #{error.inspect}" - end - end - end -end