Skip to content

Commit

Permalink
Merge pull request rails#5678 from troyk/patch-1
Browse files Browse the repository at this point in the history
Remove sort on attributes.keys
  • Loading branch information
carlosantoniodasilva committed May 19, 2012
2 parents 0e207a4 + cf833b9 commit f20032f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f20032f

Please sign in to comment.