Acceed the parent in nested function

hi, how can i acceed the parent in nested function. ex:
i want to acceed user object in count function. I tried with
scoped_methods but it doesn’t work in this case. is there another, a
better way?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs