aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/activerecord_errors_extensions.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/activerecord_errors_extensions.rb b/lib/activerecord_errors_extensions.rb
new file mode 100644
index 000000000..8135d34f7
--- /dev/null
+++ b/lib/activerecord_errors_extensions.rb
@@ -0,0 +1,10 @@
+# Monkeypatch! activerecord/lib/active_record/validations.rb
+# Method to remove individual error messages from an ActiveRecord.
+module ActiveRecord
+ class Errors
+ def delete(key)
+ @errors.delete(key)
+ end
+ end
+end
+