aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 8c1d4387b..426625102 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -120,5 +120,12 @@ module ActionMailer
end
end
-
+# Monkeypatch! Remove individual error messages from an ActiveRecord.
+module ActiveRecord
+ class Errors
+ def delete(key)
+ @errors.delete(key)
+ end
+ end
+end