We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Foo < ApplicationRecord belongs_to :bar, optional: true end
class FooSerializer include FastJsonapi::ObjectSerializer belongs_to :bar end
On a nil bar_id the serializer throws a fatal NoMethodError (undefined method id' for nil:NilClass):`
bar_id
NoMethodError (undefined method
The text was updated successfully, but these errors were encountered:
This should be released in version 1.2 of the gem
Sorry, something went wrong.
This does not seem to be fixed in 1.2
Was able to get it working with https://github.com/Netflix/fast_jsonapi/tree/release-1.2.1#conditional-relationships
No branches or pull requests
On a nil
bar_id
the serializer throws a fatalNoMethodError (undefined method
id' for nil:NilClass):`The text was updated successfully, but these errors were encountered: