active_model_serializers/test
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
..
association_test.rb delete identical test 2012-05-30 10:55:35 -06:00
generators_test.rb Fix the tests 2012-06-05 10:18:05 +02:00
no_serialization_scope_test.rb Allows serialization_scope to be disabled with serialization_scope nil 2012-06-05 12:37:09 -04:00
serialization_test.rb Merge pull request #65 from teeparham/array-root 2012-06-05 00:31:13 -07:00
serializer_support_test.rb Automatically include ArraySerializer in ActiveRecord::Relation 2012-07-10 10:17:54 +08:00
serializer_test.rb Raise error when associations cannot be included 2012-07-16 14:18:58 +02:00
test_helper.rb Fix the build on 1.8.7 :trollface: 2012-05-17 19:28:15 +02:00