I have a model with a completed:boolean column that I'd like override so I can add some conditional code.
I've never override an ActiveRecord attribute before and wanted to know if the method below is good practice?
class Article < ActiveRecord::Base
def completed=(b)
write_attribute(:completed, b)
# IF b is true then do something
end
end