I just wanna know if there is a way of doing this :
I want an "invited" method for my user class to create a list of user(s) that have their referral_code equals to the self.confirmation_token
I tried a lot of things and the last thing was almost good I know it, but I have a syntax error ...
scope :invited, -> {|u| where("referral_code = ?", confirmation_token)}
ofc by this I mean that I want to iterate on every user in the database (|u|)