assign_attributes differs between Rails 2 and 3