change transaction call so it still works in rails 3.0.5