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:
commit
f20032fa15
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue