Refactor give preference to Rails 4 method

Thanks to AhmedAttyah for the suggestion,
see https://github.com/gonzalo-bulnes/simple_token_authentication/pull/7#issuecomment-31232889