Permalink
Browse files

Remove sort on attributes.keys

  • Loading branch information...
1 parent 25f1d5d commit cf833b9d97f612ed2105ca4c467f03f812433320 @troyk troyk committed Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/serialization.rb
@@ -68,7 +68,7 @@ module Serialization
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]

0 comments on commit cf833b9

Please sign in to comment.