fix patch for rails3.2