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