It cannot serialize active record relations

```ruby
NoMethodError:
       undefined method `read_attribute_for_serialization' for #<ActiveRecord::Relation []>
```