Alessandro Dal Grande 42d9203796 Fix confusing error when using include and no relationship was set
If you forgot to set any `has_many` in the serializer and tried to serialize with an `include` you would get:
```
NoMethodError (undefined method `[]' for nil:NilClass):
```

That is not very helpful. Setting the variable with a default case makes sure the right error message gets displayed.
2018-08-22 20:08:04 -07:00
..
2018-03-12 22:46:41 -07:00
2018-07-03 19:33:34 -07:00
2018-06-21 18:40:42 -07:00
2018-07-21 10:05:01 +05:30
2018-07-16 21:52:58 -07:00