Rails 3.2 convert to working Gem to prevent deprecation warnings