tpitale-rack-oauth2-server fix for rails 3