rails3.2 compatibility