upgrade hash syntax

This commit is contained in:
Tee Parham
2013-05-29 21:59:17 -06:00
parent b686b73edf
commit 74ba9dc76c
7 changed files with 24 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ module ActiveModel
# embed: Define how associations should be embedded.
# - :objects # Embed associations as full objects.
# - :ids # Embed only the association ids.
# - :ids, :include => true # Embed the association ids and include objects in the root.
# - :ids, include: true # Embed the association ids and include objects in the root.
#
# include: Used in conjunction with embed :ids. Includes the objects in the root.
#
@@ -158,8 +158,8 @@ module ActiveModel
if polymorphic?
{
:type => polymorphic_key,
:id => id
type: polymorphic_key,
id: id
}
else
id