Add Rails 3 compatible class