diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index f4c7400..e09b934 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -173,6 +173,8 @@ module ActiveModel
end
end
+ def as_json(options = nil) to_a end #:nodoc:
+
# Adds +message+ to the error messages on +attribute+, which will be returned on a call to
# on(attribute) for the same attribute. More than one error can be added to the same
# +attribute+ in which case an array will be returned on a call to on(attribute).