You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @nadeemja, in 0.10, the default is currently to serialize only the first level of relatinoships (this is being discussed here #1205). You can override this behavior either at the controller level, by specifying the include: '**' option in your render call (like render json: @posts, include: '**'), as soon to be mentioned in the docs (there's a pending PR to add this to the docs), or globally by subclassing ActiveModel::Serializer and overriding serializable_hash.
Hi,
I have the following associations between three models:
Event has_many Schedules.
Schedule has_and_belongs_to_many Rooms
In 0.8.3, I get what i want:
In 0.10.0.rc3, I only get:
I've downgraded to 0.8.3 for now.
Let me know if you need more info.
The text was updated successfully, but these errors were encountered: