active_model_serializers/lib
twinturbo 486d282922 Raise error when associations cannot be included
include! only works when the source serializer has a root set. The
as_json method sets up some state for the include! method. If a child
association has associations with `:include => true` or `root foo,
:include => true` would cause an undefined method error for `NilClass`.
This is entirely unhelpful for the end user.

This commit raise an error when this situation occurs. It makes it clear
that it's not a problem with AMS but the serialization graph.
2012-07-16 14:18:58 +02:00
..
action_controller Allows serialization_scope to be disabled with serialization_scope nil 2012-06-05 12:37:09 -04:00
active_model Raise error when associations cannot be included 2012-07-16 14:18:58 +02:00
generators Always add :id to attributes 2012-06-05 10:05:06 +02:00
active_model_serializers.rb move array_serializer logic to active_model_serializer.rb 2012-07-10 10:23:45 +08:00