Pro-tip: don’t name your local variables the same as your model associations. Truth: “7+ years Rails experience”, still a dumbass.
I don't think Ruby has a hook for a local variable being defined. Maybe settracefunc but I don't think even that will do it
-
-
Let’s fix Ruby! :-P
#nuts -
Explicit self would solve the problem. ;)
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.