I’m a little confused when I should be using ‘self’ in my model.
I had code like:
class User < ActiveRecord::Base
self.user_bio_text = …
If I removed ‘self’, it didn’t seem to set the model’s attribute at all
would return nil).
I can’t recall exaclty where this happenend in my code, but I remember
I was trying to get the a model’s attribute and it didn’t work when I
So I’m confused, when do I use ‘self’ and when’t don’t I?