Closed andrew-oko-odion closed 1 year ago
That's odd. This is definitely tested.
I thought so too, but ended up spending several hours without getting any good result
@bf4 were you able to reproduce this bug?
Oh,.sorry, I haven't looked. I'm trying to be responsive as a maintainer but I haven't really worked on it in years
Oh,.sorry, I haven't looked. I'm trying to be responsive as a maintainer but I haven't really worked on it in years
I understand, but really hopefull
it was my fault all along, it turns out the request was not been authenticated
it turns out I was examining an unauthenticated route
Thank you for your time, closing this issue now!
Thanks for getting back!
On Fri, Jul 15, 2022, 4:32 AM Andrew Oko-odion @.***> wrote:
Closed #2436 https://github.com/rails-api/active_model_serializers/issues/2436 as completed.
— Reply to this email directly, view it on GitHub https://github.com/rails-api/active_model_serializers/issues/2436#event-7000574132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABC4QWJH2Y2Y5RWRG7B6STVUEVZ3ANCNFSM5ZYNKPXA . You are receiving this because you were mentioned.Message ID: <rails-api/active_model_serializers/issue/2436/issue_event/7000574132@ github.com>
Expected behavior vs actual behavior
expected to be able to read scope's value from Serializer, but I get the error
#<NameError: undefined local variable or method scope for BasketSerializer:Class>
Steps to reproduce
(e.g., detailed walkthrough, runnable script, example application)
Environment
ActiveModelSerializers Version (commit ref if not on tag): active_model_serializers (0.10.12)
Output of
ruby -e "puts RUBY_DESCRIPTION"
:ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin20]
OS Type & Version:
Mac OS X
Integrated application and version (e.g., Rails, Grape, etc):
Backtrace
(e.g., provide any applicable backtraces from your application)
Additonal helpful information
(e.g., Gemfile.lock, configurations, PR containing a failing test, git bisect results)