aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorTroy Kruthoff <troy@blit.com>2012-03-30 20:39:49 -0700
committerTroy Kruthoff <troy@blit.com>2012-03-30 20:39:49 -0700
commitcf833b9d97f612ed2105ca4c467f03f812433320 (patch)
tree018d13e2de3330f8eae9f4688b6392dd7002c0c2 /activemodel/lib/active_model
parent25f1d5da37811644c81127e9219fc070953776e0 (diff)
downloadrails-cf833b9d97f612ed2105ca4c467f03f812433320.tar.gz
rails-cf833b9d97f612ed2105ca4c467f03f812433320.tar.bz2
rails-cf833b9d97f612ed2105ca4c467f03f812433320.zip
Remove sort on attributes.keys
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/serialization.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb
index 4323ee1e09..e9e80c4d2a 100644
--- a/activemodel/lib/active_model/serialization.rb
+++ b/activemodel/lib/active_model/serialization.rb
@@ -68,7 +68,7 @@ module ActiveModel
def serializable_hash(options = nil)
options ||= {}
- attribute_names = attributes.keys.sort
+ attribute_names = attributes.keys
if only = options[:only]
attribute_names &= Array(only).map(&:to_s)
elsif except = options[:except]