Attempting to make the gem work with Rails 3.1.