Dirty update for Rails 4. May not work.