Fixed gem for Rails version 3.0