Add Rails 3 compat.