aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2009-03-19 14:42:08 +0900
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-11 18:52:22 -0700
commit0990a13500d036f9b8cf4c11eb1056069357fca7 (patch)
tree0c2443af4858ab86f3be3ab2975b42f4f4def231 /activemodel/lib
parent68b2b730e46de8415ece93701ea40434ae080353 (diff)
downloadrails-0990a13500d036f9b8cf4c11eb1056069357fca7.tar.gz
rails-0990a13500d036f9b8cf4c11eb1056069357fca7.tar.bz2
rails-0990a13500d036f9b8cf4c11eb1056069357fca7.zip
Ensure validation errors to be ordered in declared order
[#2301 state:committed milestone:2.3.5] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 7a3001174f..590420de0b 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -1,7 +1,8 @@
require 'active_support/core_ext/string/inflections'
+require 'active_support/ordered_hash'
module ActiveModel
- class Errors < Hash
+ class Errors < ActiveSupport::OrderedHash
include DeprecatedErrorMethods
def initialize(base)