Netflix / fast_jsonapi

No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
Apache License 2.0
5.07k stars 425 forks source link

uninitialized constant FooBar::OrganizationSerializer::FastJsonapi #463

Closed rafaltrojanowski closed 4 years ago

rafaltrojanowski commented 4 years ago

Hi,

I'd like to use this gem, instead of popular AMS, because we would like to have Json:Api format with underscored keys.

I'm having an issue with our test suite which throws an error. Interestingly after running server, I'm getting a correct response and no error. To give you full context, the place where a serializer is placed is a Rails Engine.

I don't know why FastJsonapi is not visible when I'm running the test suite. I was thinking about a workaround and including it in RSpec config but probably that wouldn't help.

I would appreciate any ideas on how to solve this issue.

Unfortunately, I don't have a repo which I can share with you.

Please let me know if you need more details.

paydaylight commented 4 years ago

that seems like a spring issue

rafaltrojanowski commented 4 years ago

Most likely it was due to the fact that gem was added to 'global' Gemfile instead of Engine's gemspec as a dependency.