Rails3 support