Hey, guys!
I'm struggling with this issue for a while so I decided to come here and ask your help.
Actually, locally grape and grape-entity works fine but, when I deploy the code to Heroku, I got this:
caught error of type NameError in after callback inside Grape::Middleware::Formatter : undefined local variable or method `attributes' for "x...@test.com":String 2021-03-06T19:29:15.069136+00:00 app[web.1]: Did you mean? attribute_names
2021-03-06T19:29:15.069895+00:00 app[web.1]: #<NameError: undefined local variable or method `attributes' for "x...@test.com":String 2021-03-06T19:29:15.069896+00:00 app[web.1]: Did you mean? attribute_names>
I'm using:
Ruby 2.7.2
Rails 5.2.4.5
grape-entity 0.8.2
Do you guys have any ideia?
Thanks,
Paulo