I know you can do this with virtual attributes, but what if the column actually exists?
For example, my model has a raw_topic column. When raw_top
raw_topic
raw_top
You can do it like this:
def raw_topic=(value) # do something with raw topic self[:raw_topic] = value end
That way you can ensure you still have the raw topic if you need to act on it.