socialcast/devise_oauth2_providable — pull request #42 by duncanbeevers (2012-05-24 13:37:16+00:00)
Title: TokensController can be subclassed

The Oauth2GrantType strategy currently relies on the hard-coded path to the TokensController. Subclassing this controller in order to tune some of its filter behaviors, and then mounting it manually within an app doesn't work due to this constant.

This change modifies the strategy to check the type of the ActionController instance passed through the Rack environment thereby preserving the original behavior while also allowing subclassing.