Fix Deprecation using Rails 3.2

This should fix rails 3.2 builds.