1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #5678 from troyk/patch-1

Remove sort on attributes.keys
This commit is contained in:
Carlos Antonio da Silva 2012-05-19 06:08:33 -07:00
commit f20032fa15

View file

@ -74,7 +74,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]