diff options
author | Troy Kruthoff <troy@blit.com> | 2012-03-30 20:39:49 -0700 |
---|---|---|
committer | Troy Kruthoff <troy@blit.com> | 2012-03-30 20:39:49 -0700 |
commit | cf833b9d97f612ed2105ca4c467f03f812433320 (patch) | |
tree | 018d13e2de3330f8eae9f4688b6392dd7002c0c2 /activemodel/lib | |
parent | 25f1d5da37811644c81127e9219fc070953776e0 (diff) | |
download | rails-cf833b9d97f612ed2105ca4c467f03f812433320.tar.gz rails-cf833b9d97f612ed2105ca4c467f03f812433320.tar.bz2 rails-cf833b9d97f612ed2105ca4c467f03f812433320.zip |
Remove sort on attributes.keys
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/serialization.rb | 2 |
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] |