teardown rails 3.1 support