Upgrade to a ruby gem based on the rails3 branch.