rails 3 compat