Fix the "can't modify frozen array" error with Rails 3