Skip to content

The guard method should not just pass the second item as a string. #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 15, 2017

Conversation

tim-vandecasteele
Copy link
Contributor

If you want to use the guard method as instructed in the readme, you will actually pass the string “false” to the oauth2 method, iso actually passing false. As this is a user added string, we should just instance_eval it.

This is clearly made to be used with wine_bouncer, but in the current implementation I so no way possible to actually pass false (so make wine_bouncer see this as public iso the scope :false)

This does change the current behaviour though!

If you want to use the guard method as instructed in the readme, you will actually pass the string “false” to the oauth2 method, iso actually passing `false`. As this is a user added string, we should just instance_eval it.

This is clearly made to be used with wine_bouncer, but in the current implementation I so no way possible to actually pass false (so make wine_bouncer see this as public iso the scope :false)
@LeFnord
Copy link
Member

LeFnord commented Jan 5, 2017

thanks @tim-vandecasteele
@texpert please can you have a look on it, thanks

@texpert
Copy link
Contributor

texpert commented Jan 5, 2017

@LeFnord, @tim-vandecasteele, I am currently abroad in vacation, will return home January, 10 and will take a look after this.

@coveralls
Copy link

coveralls commented Jan 15, 2017

Coverage Status

Coverage remained the same at 99.876% when pulling 8ba1093 on tim-vandecasteele:eval-guard into ab12328 on ruby-grape:master.

@LeFnord
Copy link
Member

LeFnord commented Jan 15, 2017

it seems to be ok

@LeFnord LeFnord merged commit df001e4 into ruby-grape:master Jan 15, 2017
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
…uby-grape#562)

If you want to use the guard method as instructed in the readme, you will actually pass the string “false” to the oauth2 method, iso actually passing `false`. As this is a user added string, we should just instance_eval it.

This is clearly made to be used with wine_bouncer, but in the current implementation I so no way possible to actually pass false (so make wine_bouncer see this as public iso the scope :false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants