Created
December 6, 2012 22:46
-
-
Save jdx/4229182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How do I make this: | |
skip_authorization do |current_resource_owner, client| | |
client.application.auto_grant? | |
end | |
# Work with this: | |
!!instance_exec(@server.current_resource_owner, @pre_auth.client) &Doorkeeper.configuration.skip_authorization | |
# in both 1.8 and 1.9, without failures like this: https://travis-ci.org/applicake/doorkeeper/builds/3540040 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fixed it!
for those curious