NoamB/sorcery — pull request #558 by arnvald (2014-06-22 07:42:30+00:00)
Title: Replace `find_by_provider_and_uid` with `find_by_oauth_credentials`

We used dynamic method based on provider and uid attributes names. This was ok
as long as user either used ActiveRecord (where the method was generated
dynamically) or used other ORMs, but didn't change these fields' names, because
then the method wasn't available in model (as other ORMs don't generate methods
dynamically, and the one we wrote was called specifically
`find_by_provider_and_uid`).

Fixes #529