make gem rails3 compat