Fix Rails 2.3 support