Phil A Thompson
Phil A Thompson
`NameError (uninitialized constant Receipt::ProductSerializer)` If that's not a typo then this is your problem. You don't have a `Receipt::ProductSerializer`. You have a Product::ProductSerializer. To be honest using namespaces that have...
Yes I've just been looking closer and I see your problem now
Is the type field in the model being saved correctly with the namespace?
In that case it's possibly an issue with fast_jsonapi. As a workaround you may be able to do something like `ProductSerializer = Product::ProductSerializer` inside the `IngredientSerializer` or even define it...
Other serializers implement it as it is here (e.g. https://github.com/jsonapi-rb/jsonapi-serializable) with all nodes included. I'd stick with that and update the documentation. As @nruth says, it's in the spec.
I'm not sure if this is what you want but it looks like you've got a polymorphic relationship there. If that's the case you can do: ``` belongs_to :record, polymorphic:...
The source code is not that hard to understand. I've modified it myself to handle pluralization. See the bottom of this issue https://github.com/Netflix/fast_jsonapi/issues/301 for example code. You might be able...
I needed this as well so I shoved this into `config/initializers/fast_jsonapi.rb`: ``` # frozen_string_literal: true # rubocop:disable Naming/PredicateName # rubocop:disable Naming/AccessorMethodName module FastJsonapi module ObjectSerializer class_methods do def pluralize(type_name, options...
You'll need the code from the PR that I raised above (https://github.com/neovim/neovim/pull/13001). Here is Lua config in `init.vim` ```vim :lua
@jubnzv Commit https://github.com/neovim/neovim/pull/13174 means the patch is no longer required and works with the latest Neovim 0.5 master.