Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5678 from troyk/patch-1

Remove sort on attributes.keys
  • Loading branch information...
commit f20032fa15de8bc3d8d47993dbb64f759843120e 2 parents 0e207a4 + cf833b9
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/serialization.rb
View
2  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.
Something went wrong with that request. Please try again.