Permalink
Browse files

Merge pull request #5678 from troyk/patch-1

Remove sort on attributes.keys
  • Loading branch information...
2 parents 0e207a4 + cf833b9 commit f20032fa15de8bc3d8d47993dbb64f759843120e @carlosantoniodasilva carlosantoniodasilva committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/serialization.rb
@@ -74,7 +74,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 f20032f

Please sign in to comment.