aglushkov / serega

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin `batch `does not work when enabled to nested serializer only

aglushkov opened this issue · comments

NoMethodError: undefined method get for nil:NilClass in remember_key_for_batch_loading method

https://github.com/aglushkov/serega/blob/master/lib/serega/plugins/batch/batch.rb#L270-L274

We must add batch plugin to parent serializer that has nested serializer with :batch attribute. Now we show meaningful error message instead of NoMethodError